home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Documentation / IM-Component Manager / Component Manager < prev   
MacBinary  |  1992-11-24  |  681.4 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Component Manager

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Mon Oct 19 12:03:54 1992, modified Tue Nov 24 10:45:23 1992, creator 'HLX2', type 'ONLN', 671893 bytes "Component Manager" , at 0xa4115 25474 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 43 6f 6d 70 6f 6e | 65 6e 74 20 4d 61 6e 61 |..Compon|ent Mana|
|00000010| 67 65 72 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ger.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 0a 40 95 00 | 00 63 82 a7 08 8c ea a7 |.....@..|.c......|
|00000060| 37 fe 93 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |7.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c7 37 00 00 |........|.....7..|
|00000080| 44 65 76 65 6c 6f 70 65 | 72 20 4e 6f 74 65 0d 54 |Develope|r Note.T|
|00000090| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|000000a0| 61 67 65 72 0d 0d f0 09 | 41 70 70 6c 65 20 43 6f |ager....|Apple Co|
|000000b0| 6d 70 75 74 65 72 2c 20 | 49 6e 63 2e 0d a9 20 3c |mputer, |Inc... <|
|000000c0| 24 79 65 61 72 5c 3e 2c | 20 41 70 70 6c 65 20 43 |$year\>,| Apple C|
|000000d0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 41 6c |omputer,| Inc..Al|
|000000e0| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|000000f0| 64 2e 20 0d 4e 6f 20 70 | 61 72 74 20 6f 66 20 74 |d. .No p|art of t|
|00000100| 68 69 73 20 70 75 62 6c | 69 63 61 74 69 6f 6e 20 |his publ|ication |
|00000110| 6d 61 79 20 62 65 20 72 | 65 70 72 6f 64 75 63 65 |may be r|eproduce|
|00000120| 64 2c 20 73 74 6f 72 65 | 64 20 69 6e 20 61 20 72 |d, store|d in a r|
|00000130| 65 74 72 69 65 76 61 6c | 20 73 79 73 74 65 6d 2c |etrieval| system,|
|00000140| 20 6f 72 20 74 72 61 6e | 73 6d 69 74 74 65 64 2c | or tran|smitted,|
|00000150| 20 69 6e 20 61 6e 79 20 | 66 6f 72 6d 20 6f 72 20 | in any |form or |
|00000160| 62 79 20 61 6e 79 20 6d | 65 61 6e 73 2c 20 6d 65 |by any m|eans, me|
|00000170| 63 68 61 6e 69 63 61 6c | 2c 20 65 6c 65 63 74 72 |chanical|, electr|
|00000180| 6f 6e 69 63 2c 20 70 68 | 6f 74 6f 63 6f 70 79 69 |onic, ph|otocopyi|
|00000190| 6e 67 2c 20 72 65 63 6f | 72 64 69 6e 67 2c 20 6f |ng, reco|rding, o|
|000001a0| 72 20 6f 74 68 65 72 77 | 69 73 65 2c 20 77 69 74 |r otherw|ise, wit|
|000001b0| 68 6f 75 74 20 70 72 69 | 6f 72 20 77 72 69 74 74 |hout pri|or writt|
|000001c0| 65 6e 20 70 65 72 6d 69 | 73 73 69 6f 6e 20 6f 66 |en permi|ssion of|
|000001d0| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|000001e0| 20 49 6e 63 2e 20 50 72 | 69 6e 74 65 64 20 69 6e | Inc. Pr|inted in|
|000001f0| 20 74 68 65 20 55 6e 69 | 74 65 64 20 53 74 61 74 | the Uni|ted Stat|
|00000200| 65 73 20 6f 66 20 41 6d | 65 72 69 63 61 2e 0d 54 |es of Am|erica..T|
|00000210| 68 65 20 41 70 70 6c 65 | 20 6c 6f 67 6f 20 69 73 |he Apple| logo is|
|00000220| 20 61 20 72 65 67 69 73 | 74 65 72 65 64 20 74 72 | a regis|tered tr|
|00000230| 61 64 65 6d 61 72 6b 20 | 6f 66 20 41 70 70 6c 65 |ademark |of Apple|
|00000240| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 20 | Compute|r, Inc. |
|00000250| 0d 55 73 65 20 6f 66 20 | 74 68 65 20 d2 6b 65 79 |.Use of |the .key|
|00000260| 62 6f 61 72 64 d3 20 41 | 70 70 6c 65 20 6c 6f 67 |board. A|pple log|
|00000270| 6f 20 28 4f 70 74 69 6f | 6e 2d 53 68 69 66 74 2d |o (Optio|n-Shift-|
|00000280| 4b 29 20 66 6f 72 20 63 | 6f 6d 6d 65 72 63 69 61 |K) for c|ommercia|
|00000290| 6c 20 70 75 72 70 6f 73 | 65 73 20 77 69 74 68 6f |l purpos|es witho|
|000002a0| 75 74 20 74 68 65 20 70 | 72 69 6f 72 20 77 72 69 |ut the p|rior wri|
|000002b0| 74 74 65 6e 20 63 6f 6e | 73 65 6e 74 20 6f 66 20 |tten con|sent of |
|000002c0| 41 70 70 6c 65 20 6d 61 | 79 20 63 6f 6e 73 74 69 |Apple ma|y consti|
|000002d0| 74 75 74 65 20 74 72 61 | 64 65 6d 61 72 6b 20 69 |tute tra|demark i|
|000002e0| 6e 66 72 69 6e 67 65 6d | 65 6e 74 20 61 6e 64 20 |nfringem|ent and |
|000002f0| 75 6e 66 61 69 72 20 63 | 6f 6d 70 65 74 69 74 69 |unfair c|ompetiti|
|00000300| 6f 6e 20 69 6e 20 76 69 | 6f 6c 61 74 69 6f 6e 20 |on in vi|olation |
|00000310| 6f 66 20 66 65 64 65 72 | 61 6c 20 61 6e 64 20 73 |of feder|al and s|
|00000320| 74 61 74 65 20 6c 61 77 | 73 2e 20 0d 4e 6f 20 6c |tate law|s. .No l|
|00000330| 69 63 65 6e 73 65 73 2c | 20 65 78 70 72 65 73 73 |icenses,| express|
|00000340| 20 6f 72 20 69 6d 70 6c | 69 65 64 2c 20 61 72 65 | or impl|ied, are|
|00000350| 20 67 72 61 6e 74 65 64 | 20 77 69 74 68 20 72 65 | granted| with re|
|00000360| 73 70 65 63 74 20 74 6f | 20 61 6e 79 20 6f 66 20 |spect to| any of |
|00000370| 74 68 65 20 74 65 63 68 | 6e 6f 6c 6f 67 79 20 64 |the tech|nology d|
|00000380| 65 73 63 72 69 62 65 64 | 20 69 6e 20 74 68 69 73 |escribed| in this|
|00000390| 20 62 6f 6f 6b 2e 20 41 | 70 70 6c 65 20 72 65 74 | book. A|pple ret|
|000003a0| 61 69 6e 73 20 61 6c 6c | 20 69 6e 74 65 6c 6c 65 |ains all| intelle|
|000003b0| 63 74 75 61 6c 20 70 72 | 6f 70 65 72 74 79 20 72 |ctual pr|operty r|
|000003c0| 69 67 68 74 73 20 61 73 | 73 6f 63 69 61 74 65 64 |ights as|sociated|
|000003d0| 20 77 69 74 68 20 74 68 | 65 20 74 65 63 68 6e 6f | with th|e techno|
|000003e0| 6c 6f 67 79 20 64 65 73 | 63 72 69 62 65 64 20 69 |logy des|cribed i|
|000003f0| 6e 20 74 68 69 73 20 62 | 6f 6f 6b 2e 20 54 68 69 |n this b|ook. Thi|
|00000400| 73 20 62 6f 6f 6b 20 69 | 73 20 69 6e 74 65 6e 64 |s book i|s intend|
|00000410| 65 64 20 74 6f 20 61 73 | 73 69 73 74 20 61 70 70 |ed to as|sist app|
|00000420| 6c 69 63 61 74 69 6f 6e | 20 64 65 76 65 6c 6f 70 |lication| develop|
|00000430| 65 72 73 20 74 6f 20 64 | 65 76 65 6c 6f 70 20 61 |ers to d|evelop a|
|00000440| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 6f 6e 6c 79 |pplicati|ons only|
|00000450| 20 66 6f 72 20 41 70 70 | 6c 65 20 4d 61 63 69 6e | for App|le Macin|
|00000460| 74 6f 73 68 20 63 6f 6d | 70 75 74 65 72 73 2e 0d |tosh com|puters..|
|00000470| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, |
|00000480| 49 6e 63 2e 0d 32 30 35 | 32 35 20 4d 61 72 69 61 |Inc..205|25 Maria|
|00000490| 6e 69 20 41 76 65 6e 75 | 65 0d 43 75 70 65 72 74 |ni Avenu|e.Cupert|
|000004a0| 69 6e 6f 2c 20 43 41 20 | 39 35 30 31 34 0d 34 30 |ino, CA |95014.40|
|000004b0| 38 2d 39 39 36 2d 31 30 | 31 30 0d 41 70 70 6c 65 |8-996-10|10.Apple|
|000004c0| 2c 20 74 68 65 20 41 70 | 70 6c 65 20 6c 6f 67 6f |, the Ap|ple logo|
|000004d0| 2c 20 41 50 44 41 2c 20 | 4c 61 73 65 72 57 72 69 |, APDA, |LaserWri|
|000004e0| 74 65 72 2c 20 61 6e 64 | 20 4d 61 63 69 6e 74 6f |ter, and| Macinto|
|000004f0| 73 68 20 61 72 65 20 74 | 72 61 64 65 6d 61 72 6b |sh are t|rademark|
|00000500| 73 20 6f 66 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |s of App|le Compu|
|00000510| 74 65 72 2c 20 49 6e 63 | 2e 2c 20 72 65 67 69 73 |ter, Inc|., regis|
|00000520| 74 65 72 65 64 20 69 6e | 20 74 68 65 20 55 6e 69 |tered in| the Uni|
|00000530| 74 65 64 20 53 74 61 74 | 65 73 20 61 6e 64 20 6f |ted Stat|es and o|
|00000540| 74 68 65 72 20 63 6f 75 | 6e 74 72 69 65 73 2e 0d |ther cou|ntries..|
|00000550| 41 64 6f 62 65 20 49 6c | 6c 75 73 74 72 61 74 6f |Adobe Il|lustrato|
|00000560| 72 20 61 6e 64 20 50 6f | 73 74 53 63 72 69 70 74 |r and Po|stScript|
|00000570| 20 61 72 65 20 74 72 61 | 64 65 6d 61 72 6b 73 20 | are tra|demarks |
|00000580| 6f 66 20 41 64 6f 62 65 | 20 53 79 73 74 65 6d 73 |of Adobe| Systems|
|00000590| 20 49 6e 63 6f 72 70 6f | 72 61 74 65 64 2c 20 77 | Incorpo|rated, w|
|000005a0| 68 69 63 68 20 6d 61 79 | 20 62 65 20 72 65 67 69 |hich may| be regi|
|000005b0| 73 74 65 72 65 64 20 69 | 6e 20 63 65 72 74 61 69 |stered i|n certai|
|000005c0| 6e 20 6a 75 72 69 73 64 | 69 63 74 69 6f 6e 73 2e |n jurisd|ictions.|
|000005d0| 0d 46 72 61 6d 65 4d 61 | 6b 65 72 20 69 73 20 61 |.FrameMa|ker is a|
|000005e0| 20 72 65 67 69 73 74 65 | 72 65 64 20 74 72 61 64 | registe|red trad|
|000005f0| 65 6d 61 72 6b 20 6f 66 | 20 46 72 61 6d 65 20 54 |emark of| Frame T|
|00000600| 65 63 68 6e 6f 6c 6f 67 | 79 20 43 6f 72 70 6f 72 |echnolog|y Corpor|
|00000610| 61 74 69 6f 6e 2e 0d 48 | 65 6c 76 65 74 69 63 61 |ation..H|elvetica|
|00000620| 20 61 6e 64 20 50 61 6c | 61 74 69 6e 6f 20 61 72 | and Pal|atino ar|
|00000630| 65 20 72 65 67 69 73 74 | 65 72 65 64 20 74 72 61 |e regist|ered tra|
|00000640| 64 65 6d 61 72 6b 73 20 | 6f 66 20 4c 69 6e 6f 74 |demarks |of Linot|
|00000650| 79 70 65 20 43 6f 6d 70 | 61 6e 79 2e 0d 49 54 43 |ype Comp|any..ITC|
|00000660| 20 5a 61 70 66 20 44 69 | 6e 67 62 61 74 73 20 69 | Zapf Di|ngbats i|
|00000670| 73 20 61 20 72 65 67 69 | 73 74 65 72 65 64 20 74 |s a regi|stered t|
|00000680| 72 61 64 65 6d 61 72 6b | 20 6f 66 20 49 6e 74 65 |rademark| of Inte|
|00000690| 72 6e 61 74 69 6f 6e 61 | 6c 20 54 79 70 65 66 61 |rnationa|l Typefa|
|000006a0| 63 65 20 43 6f 72 70 6f | 72 61 74 69 6f 6e 2e 0d |ce Corpo|ration..|
|000006b0| 56 61 72 69 74 79 70 65 | 72 20 69 73 20 61 20 72 |Varitype|r is a r|
|000006c0| 65 67 69 73 74 65 72 65 | 64 20 74 72 61 64 65 6d |egistere|d tradem|
|000006d0| 61 72 6b 20 6f 66 20 56 | 61 72 69 74 79 70 65 72 |ark of V|arityper|
|000006e0| 2c 20 49 6e 63 2e 0d 53 | 69 6d 75 6c 74 61 6e 65 |, Inc..S|imultane|
|000006f0| 6f 75 73 6c 79 20 70 75 | 62 6c 69 73 68 65 64 20 |ously pu|blished |
|00000700| 69 6e 20 74 68 65 20 55 | 6e 69 74 65 64 20 53 74 |in the U|nited St|
|00000710| 61 74 65 73 20 61 6e 64 | 20 43 61 6e 61 64 61 2e |ates and| Canada.|
|00000720| 0d 4c 49 4d 49 54 45 44 | 20 57 41 52 52 41 4e 54 |.LIMITED| WARRANT|
|00000730| 59 20 4f 4e 20 4d 45 44 | 49 41 20 41 4e 44 20 52 |Y ON MED|IA AND R|
|00000740| 45 50 4c 41 43 45 4d 45 | 4e 54 0d 49 66 20 79 6f |EPLACEME|NT.If yo|
|00000750| 75 20 64 69 73 63 6f 76 | 65 72 20 70 68 79 73 69 |u discov|er physi|
|00000760| 63 61 6c 20 64 65 66 65 | 63 74 73 20 69 6e 20 74 |cal defe|cts in t|
|00000770| 68 65 20 6d 61 6e 75 61 | 6c 20 6f 72 20 69 6e 20 |he manua|l or in |
|00000780| 74 68 65 20 6d 65 64 69 | 61 20 6f 6e 20 77 68 69 |the medi|a on whi|
|00000790| 63 68 20 61 20 73 6f 66 | 74 77 61 72 65 20 70 72 |ch a sof|tware pr|
|000007a0| 6f 64 75 63 74 20 69 73 | 20 64 69 73 74 72 69 62 |oduct is| distrib|
|000007b0| 75 74 65 64 2c 20 41 50 | 44 41 20 77 69 6c 6c 20 |uted, AP|DA will |
|000007c0| 72 65 70 6c 61 63 65 20 | 74 68 65 20 6d 65 64 69 |replace |the medi|
|000007d0| 61 20 6f 72 20 6d 61 6e | 75 61 6c 20 61 74 20 6e |a or man|ual at n|
|000007e0| 6f 20 63 68 61 72 67 65 | 20 74 6f 20 79 6f 75 20 |o charge| to you |
|000007f0| 70 72 6f 76 69 64 65 64 | 20 79 6f 75 20 72 65 74 |provided| you ret|
|00000800| 75 72 6e 20 74 68 65 20 | 69 74 65 6d 20 74 6f 20 |urn the |item to |
|00000810| 62 65 20 72 65 70 6c 61 | 63 65 64 20 77 69 74 68 |be repla|ced with|
|00000820| 20 70 72 6f 6f 66 20 6f | 66 20 70 75 72 63 68 61 | proof o|f purcha|
|00000830| 73 65 20 74 6f 20 41 50 | 44 41 2e 0d 41 4c 4c 20 |se to AP|DA..ALL |
|00000840| 49 4d 50 4c 49 45 44 20 | 57 41 52 52 41 4e 54 49 |IMPLIED |WARRANTI|
|00000850| 45 53 20 4f 4e 20 54 48 | 49 53 20 4d 41 4e 55 41 |ES ON TH|IS MANUA|
|00000860| 4c 2c 20 49 4e 43 4c 55 | 44 49 4e 47 20 49 4d 50 |L, INCLU|DING IMP|
|00000870| 4c 49 45 44 20 57 41 52 | 52 41 4e 54 49 45 53 20 |LIED WAR|RANTIES |
|00000880| 4f 46 20 4d 45 52 43 48 | 41 4e 54 41 42 49 4c 49 |OF MERCH|ANTABILI|
|00000890| 54 59 20 41 4e 44 20 46 | 49 54 4e 45 53 53 20 46 |TY AND F|ITNESS F|
|000008a0| 4f 52 20 41 20 50 41 52 | 54 49 43 55 4c 41 52 20 |OR A PAR|TICULAR |
|000008b0| 50 55 52 50 4f 53 45 2c | 20 41 52 45 20 4c 49 4d |PURPOSE,| ARE LIM|
|000008c0| 49 54 45 44 20 49 4e 20 | 44 55 52 41 54 49 4f 4e |ITED IN |DURATION|
|000008d0| 20 54 4f 20 4e 49 4e 45 | 54 59 20 28 39 30 29 20 | TO NINE|TY (90) |
|000008e0| 44 41 59 53 20 46 52 4f | 4d 20 54 48 45 20 44 41 |DAYS FRO|M THE DA|
|000008f0| 54 45 20 4f 46 20 54 48 | 45 20 4f 52 49 47 49 4e |TE OF TH|E ORIGIN|
|00000900| 41 4c 20 52 45 54 41 49 | 4c 20 50 55 52 43 48 41 |AL RETAI|L PURCHA|
|00000910| 53 45 20 4f 46 20 54 48 | 49 53 20 50 52 4f 44 55 |SE OF TH|IS PRODU|
|00000920| 43 54 2e 0d 45 76 65 6e | 20 74 68 6f 75 67 68 20 |CT..Even| though |
|00000930| 41 70 70 6c 65 20 68 61 | 73 20 72 65 76 69 65 77 |Apple ha|s review|
|00000940| 65 64 20 74 68 69 73 20 | 6d 61 6e 75 61 6c 2c 20 |ed this |manual, |
|00000950| 41 50 50 4c 45 20 4d 41 | 4b 45 53 20 4e 4f 20 57 |APPLE MA|KES NO W|
|00000960| 41 52 52 41 4e 54 59 20 | 4f 52 20 52 45 50 52 45 |ARRANTY |OR REPRE|
|00000970| 53 45 4e 54 41 54 49 4f | 4e 2c 20 45 49 54 48 45 |SENTATIO|N, EITHE|
|00000980| 52 20 45 58 50 52 45 53 | 53 20 4f 52 20 49 4d 50 |R EXPRES|S OR IMP|
|00000990| 4c 49 45 44 2c 20 57 49 | 54 48 20 52 45 53 50 45 |LIED, WI|TH RESPE|
|000009a0| 43 54 20 54 4f 20 54 48 | 49 53 20 4d 41 4e 55 41 |CT TO TH|IS MANUA|
|000009b0| 4c 2c 20 49 54 53 20 51 | 55 41 4c 49 54 59 2c 20 |L, ITS Q|UALITY, |
|000009c0| 41 43 43 55 52 41 43 59 | 2c 20 4d 45 52 43 48 41 |ACCURACY|, MERCHA|
|000009d0| 4e 54 41 42 49 4c 49 54 | 59 2c 20 4f 52 20 46 49 |NTABILIT|Y, OR FI|
|000009e0| 54 4e 45 53 53 20 46 4f | 52 20 41 20 50 41 52 54 |TNESS FO|R A PART|
|000009f0| 49 43 55 4c 41 52 20 50 | 55 52 50 4f 53 45 2e 20 |ICULAR P|URPOSE. |
|00000a00| 41 53 20 41 20 52 45 53 | 55 4c 54 2c 20 54 48 49 |AS A RES|ULT, THI|
|00000a10| 53 20 4d 41 4e 55 41 4c | 20 49 53 20 53 4f 4c 44 |S MANUAL| IS SOLD|
|00000a20| 20 d2 41 53 20 49 53 2c | d3 20 41 4e 44 20 59 4f | .AS IS,|. AND YO|
|00000a30| 55 2c 20 54 48 45 20 50 | 55 52 43 48 41 53 45 52 |U, THE P|URCHASER|
|00000a40| 2c 20 41 52 45 20 41 53 | 53 55 4d 49 4e 47 20 54 |, ARE AS|SUMING T|
|00000a50| 48 45 20 45 4e 54 49 52 | 45 20 52 49 53 4b 20 41 |HE ENTIR|E RISK A|
|00000a60| 53 20 54 4f 20 49 54 53 | 20 51 55 41 4c 49 54 59 |S TO ITS| QUALITY|
|00000a70| 20 41 4e 44 20 41 43 43 | 55 52 41 43 59 2e 0d 49 | AND ACC|URACY..I|
|00000a80| 4e 20 4e 4f 20 45 56 45 | 4e 54 20 57 49 4c 4c 20 |N NO EVE|NT WILL |
|00000a90| 41 50 50 4c 45 20 42 45 | 20 4c 49 41 42 4c 45 20 |APPLE BE| LIABLE |
|00000aa0| 46 4f 52 20 44 49 52 45 | 43 54 2c 20 49 4e 44 49 |FOR DIRE|CT, INDI|
|00000ab0| 52 45 43 54 2c 20 53 50 | 45 43 49 41 4c 2c 20 49 |RECT, SP|ECIAL, I|
|00000ac0| 4e 43 49 44 45 4e 54 41 | 4c 2c 20 4f 52 20 43 4f |NCIDENTA|L, OR CO|
|00000ad0| 4e 53 45 51 55 45 4e 54 | 49 41 4c 20 44 41 4d 41 |NSEQUENT|IAL DAMA|
|00000ae0| 47 45 53 20 52 45 53 55 | 4c 54 49 4e 47 20 46 52 |GES RESU|LTING FR|
|00000af0| 4f 4d 20 41 4e 59 20 44 | 45 46 45 43 54 20 4f 52 |OM ANY D|EFECT OR|
|00000b00| 20 49 4e 41 43 43 55 52 | 41 43 59 20 49 4e 20 54 | INACCUR|ACY IN T|
|00000b10| 48 49 53 20 4d 41 4e 55 | 41 4c 2c 20 65 76 65 6e |HIS MANU|AL, even|
|00000b20| 20 69 66 20 61 64 76 69 | 73 65 64 20 6f 66 20 74 | if advi|sed of t|
|00000b30| 68 65 20 70 6f 73 73 69 | 62 69 6c 69 74 79 20 6f |he possi|bility o|
|00000b40| 66 20 73 75 63 68 20 64 | 61 6d 61 67 65 73 2e 0d |f such d|amages..|
|00000b50| 54 48 45 20 57 41 52 52 | 41 4e 54 59 20 41 4e 44 |THE WARR|ANTY AND|
|00000b60| 20 52 45 4d 45 44 49 45 | 53 20 53 45 54 20 46 4f | REMEDIE|S SET FO|
|00000b70| 52 54 48 20 41 42 4f 56 | 45 20 41 52 45 20 45 58 |RTH ABOV|E ARE EX|
|00000b80| 43 4c 55 53 49 56 45 20 | 41 4e 44 20 49 4e 20 4c |CLUSIVE |AND IN L|
|00000b90| 49 45 55 20 4f 46 20 41 | 4c 4c 20 4f 54 48 45 52 |IEU OF A|LL OTHER|
|00000ba0| 53 2c 20 4f 52 41 4c 20 | 4f 52 20 57 52 49 54 54 |S, ORAL |OR WRITT|
|00000bb0| 45 4e 2c 20 45 58 50 52 | 45 53 53 20 4f 52 20 49 |EN, EXPR|ESS OR I|
|00000bc0| 4d 50 4c 49 45 44 2e 20 | 4e 6f 20 41 70 70 6c 65 |MPLIED. |No Apple|
|00000bd0| 20 64 65 61 6c 65 72 2c | 20 61 67 65 6e 74 2c 20 | dealer,| agent, |
|00000be0| 6f 72 20 65 6d 70 6c 6f | 79 65 65 20 69 73 20 61 |or emplo|yee is a|
|00000bf0| 75 74 68 6f 72 69 7a 65 | 64 20 74 6f 20 6d 61 6b |uthorize|d to mak|
|00000c00| 65 20 61 6e 79 20 6d 6f | 64 69 66 69 63 61 74 69 |e any mo|dificati|
|00000c10| 6f 6e 2c 20 65 78 74 65 | 6e 73 69 6f 6e 2c 20 6f |on, exte|nsion, o|
|00000c20| 72 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |r additi|on to th|
|00000c30| 69 73 20 77 61 72 72 61 | 6e 74 79 2e 0d 53 6f 6d |is warra|nty..Som|
|00000c40| 65 20 73 74 61 74 65 73 | 20 64 6f 20 6e 6f 74 20 |e states| do not |
|00000c50| 61 6c 6c 6f 77 20 74 68 | 65 20 65 78 63 6c 75 73 |allow th|e exclus|
|00000c60| 69 6f 6e 20 6f 72 20 6c | 69 6d 69 74 61 74 69 6f |ion or l|imitatio|
|00000c70| 6e 20 6f 66 20 69 6d 70 | 6c 69 65 64 20 77 61 72 |n of imp|lied war|
|00000c80| 72 61 6e 74 69 65 73 20 | 6f 72 20 6c 69 61 62 69 |ranties |or liabi|
|00000c90| 6c 69 74 79 20 66 6f 72 | 20 69 6e 63 69 64 65 6e |lity for| inciden|
|00000ca0| 74 61 6c 20 6f 72 20 63 | 6f 6e 73 65 71 75 65 6e |tal or c|onsequen|
|00000cb0| 74 69 61 6c 20 64 61 6d | 61 67 65 73 2c 20 73 6f |tial dam|ages, so|
|00000cc0| 20 74 68 65 20 61 62 6f | 76 65 20 6c 69 6d 69 74 | the abo|ve limit|
|00000cd0| 61 74 69 6f 6e 20 6f 72 | 20 65 78 63 6c 75 73 69 |ation or| exclusi|
|00000ce0| 6f 6e 20 6d 61 79 20 6e | 6f 74 20 61 70 70 6c 79 |on may n|ot apply|
|00000cf0| 20 74 6f 20 79 6f 75 2e | 20 54 68 69 73 20 77 61 | to you.| This wa|
|00000d00| 72 72 61 6e 74 79 20 67 | 69 76 65 73 20 79 6f 75 |rranty g|ives you|
|00000d10| 20 73 70 65 63 69 66 69 | 63 20 6c 65 67 61 6c 20 | specifi|c legal |
|00000d20| 72 69 67 68 74 73 2c 20 | 61 6e 64 20 79 6f 75 20 |rights, |and you |
|00000d30| 6d 61 79 20 61 6c 73 6f | 20 68 61 76 65 20 6f 74 |may also| have ot|
|00000d40| 68 65 72 20 72 69 67 68 | 74 73 20 77 68 69 63 68 |her righ|ts which|
|00000d50| 20 76 61 72 79 20 66 72 | 6f 6d 20 73 74 61 74 65 | vary fr|om state|
|00000d60| 20 74 6f 20 73 74 61 74 | 65 2e 0d 43 6f 6e 74 65 | to stat|e..Conte|
|00000d70| 6e 74 73 0d 43 6f 6e 74 | 65 6e 74 73 0d 46 69 67 |nts.Cont|ents.Fig|
|00000d80| 75 72 65 73 20 61 6e 64 | 20 4c 69 73 74 69 6e 67 |ures and| Listing|
|00000d90| 73 14 14 76 0d 43 68 61 | 70 74 65 72 20 31 09 54 |s..v.Cha|pter 1.T|
|00000da0| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00000db0| 61 67 65 72 14 14 31 2d | 31 0d 49 6e 74 72 6f 64 |ager..1-|1.Introd|
|00000dc0| 75 63 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 43 6f |uction t|o the Co|
|00000dd0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 14 |mponent |Manager.|
|00000de0| 14 31 2d 33 0d 41 62 6f | 75 74 20 43 6f 6d 70 6f |.1-3.Abo|ut Compo|
|00000df0| 6e 65 6e 74 73 14 14 31 | 2d 34 0d 55 73 69 6e 67 |nents..1|-4.Using|
|00000e00| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|00000e10| 61 6e 61 67 65 72 14 14 | 31 2d 35 0d 47 65 74 74 |anager..|1-5.Gett|
|00000e20| 69 6e 67 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ing Info|rmation |
|00000e30| 41 62 6f 75 74 20 74 68 | 65 20 43 6f 6d 70 6f 6e |About th|e Compon|
|00000e40| 65 6e 74 20 4d 61 6e 61 | 67 65 72 14 14 31 2d 36 |ent Mana|ger..1-6|
|00000e50| 0d 46 69 6e 64 69 6e 67 | 20 61 6e 64 20 55 73 69 |.Finding| and Usi|
|00000e60| 6e 67 20 43 6f 6d 70 6f | 6e 65 6e 74 73 14 14 31 |ng Compo|nents..1|
|00000e70| 2d 36 0d 4f 70 65 6e 69 | 6e 67 20 61 20 43 6f 6e |-6.Openi|ng a Con|
|00000e80| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 61 20 43 6f 6d |nection |to a Com|
|00000e90| 70 6f 6e 65 6e 74 14 14 | 31 2d 36 0d 46 69 6e 64 |ponent..|1-6.Find|
|00000ea0| 69 6e 67 20 61 20 53 70 | 65 63 69 66 69 63 20 43 |ing a Sp|ecific C|
|00000eb0| 6f 6d 70 6f 6e 65 6e 74 | 14 14 31 2d 36 0d 4f 70 |omponent|..1-6.Op|
|00000ec0| 65 6e 69 6e 67 20 61 20 | 43 6f 6e 6e 65 63 74 69 |ening a |Connecti|
|00000ed0| 6f 6e 20 74 6f 20 61 20 | 53 70 65 63 69 66 69 63 |on to a |Specific|
|00000ee0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 14 14 31 2d 37 0d | Compone|nt..1-7.|
|00000ef0| 55 73 69 6e 67 20 61 20 | 43 6f 6d 70 6f 6e 65 6e |Using a |Componen|
|00000f00| 74 14 14 31 2d 37 0d 43 | 6c 6f 73 69 6e 67 20 61 |t..1-7.C|losing a|
|00000f10| 20 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 61 | Connect|ion to a|
|00000f20| 20 43 6f 6d 70 6f 6e 65 | 6e 74 14 14 31 2d 38 0d | Compone|nt..1-8.|
|00000f30| 43 72 65 61 74 69 6e 67 | 20 43 6f 6d 70 6f 6e 65 |Creating| Compone|
|00000f40| 6e 74 73 14 14 31 2d 38 | 0d 54 68 65 20 53 74 72 |nts..1-8|.The Str|
|00000f50| 75 63 74 75 72 65 20 6f | 66 20 61 20 43 6f 6d 70 |ucture o|f a Comp|
|00000f60| 6f 6e 65 6e 74 14 14 31 | 2d 39 0d 44 65 66 69 6e |onent..1|-9.Defin|
|00000f70| 69 6e 67 20 59 6f 75 72 | 20 43 6f 6d 70 6f 6e 65 |ing Your| Compone|
|00000f80| 6e 74 d5 73 20 49 6e 74 | 65 72 66 61 63 65 73 14 |nt.s Int|erfaces.|
|00000f90| 14 31 2d 31 35 0d 4d 61 | 6e 61 67 69 6e 67 20 59 |.1-15.Ma|naging Y|
|00000fa0| 6f 75 72 20 43 6f 6d 70 | 6f 6e 65 6e 74 14 14 31 |our Comp|onent..1|
|00000fb0| 2d 31 37 0d 52 65 67 69 | 73 74 65 72 69 6e 67 20 |-17.Regi|stering |
|00000fc0| 59 6f 75 72 20 43 6f 6d | 70 6f 6e 65 6e 74 14 14 |Your Com|ponent..|
|00000fd0| 31 2d 31 37 0d 45 73 74 | 61 62 6c 69 73 68 69 6e |1-17.Est|ablishin|
|00000fe0| 67 20 61 6e 64 20 4d 61 | 6e 61 67 69 6e 67 20 43 |g and Ma|naging C|
|00000ff0| 6f 6e 6e 65 63 74 69 6f | 6e 73 14 14 31 2d 31 38 |onnectio|ns..1-18|
|00001000| 0d 52 65 63 65 69 76 69 | 6e 67 20 52 65 71 75 65 |.Receivi|ng Reque|
|00001010| 73 74 73 20 66 6f 72 20 | 53 65 72 76 69 63 65 14 |sts for |Service.|
|00001020| 14 31 2d 32 30 0d 48 61 | 6e 64 6c 69 6e 67 20 52 |.1-20.Ha|ndling R|
|00001030| 65 71 75 65 73 74 73 20 | 66 6f 72 20 53 65 72 76 |equests |for Serv|
|00001040| 69 63 65 14 14 31 2d 32 | 30 0d 52 65 74 75 72 6e |ice..1-2|0.Return|
|00001050| 69 6e 67 20 61 6e 20 45 | 72 72 6f 72 20 43 6f 64 |ing an E|rror Cod|
|00001060| 65 14 14 31 2d 32 34 0d | 52 65 66 65 72 65 6e 63 |e..1-24.|Referenc|
|00001070| 65 20 74 6f 20 74 68 65 | 20 43 6f 6d 70 6f 6e 65 |e to the| Compone|
|00001080| 6e 74 20 4d 61 6e 61 67 | 65 72 14 14 31 2d 32 34 |nt Manag|er..1-24|
|00001090| 0d 44 61 74 61 20 53 74 | 72 75 63 74 75 72 65 73 |.Data St|ructures|
|000010a0| 20 66 6f 72 20 41 70 70 | 6c 69 63 61 74 69 6f 6e | for App|lication|
|000010b0| 73 14 14 31 2d 32 34 0d | 43 6f 6d 70 6f 6e 65 6e |s..1-24.|Componen|
|000010c0| 74 20 44 65 73 63 72 69 | 70 74 69 6f 6e 14 14 31 |t Descri|ption..1|
|000010d0| 2d 32 34 0d 44 61 74 61 | 20 53 74 72 75 63 74 75 |-24.Data| Structu|
|000010e0| 72 65 73 20 66 6f 72 20 | 43 6f 6d 70 6f 6e 65 6e |res for |Componen|
|000010f0| 74 73 14 14 31 2d 32 37 | 0d 43 6f 6d 70 6f 6e 65 |ts..1-27|.Compone|
|00001100| 6e 74 20 44 65 73 63 72 | 69 70 74 69 6f 6e 14 14 |nt Descr|iption..|
|00001110| 31 2d 32 37 0d 43 6f 6d | 70 6f 6e 65 6e 74 20 50 |1-27.Com|ponent P|
|00001120| 61 72 61 6d 65 74 65 72 | 73 14 14 31 2d 32 39 0d |arameter|s..1-29.|
|00001130| 52 65 73 6f 75 72 63 65 | 73 14 14 31 2d 33 30 0d |Resource|s..1-30.|
|00001140| 43 6f 6d 70 6f 6e 65 6e | 74 20 52 65 73 6f 75 72 |Componen|t Resour|
|00001150| 63 65 14 14 31 2d 33 31 | 0d 52 6f 75 74 69 6e 65 |ce..1-31|.Routine|
|00001160| 73 20 66 6f 72 20 41 70 | 70 6c 69 63 61 74 69 6f |s for Ap|plicatio|
|00001170| 6e 73 14 14 31 2d 33 33 | 0d 46 69 6e 64 69 6e 67 |ns..1-33|.Finding|
|00001180| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 14 14 31 2d 33 | Compone|nts..1-3|
|00001190| 33 0d 4f 70 65 6e 69 6e | 67 20 61 6e 64 20 43 6c |3.Openin|g and Cl|
|000011a0| 6f 73 69 6e 67 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |osing Co|mponents|
|000011b0| 14 14 31 2d 33 37 0d 47 | 65 74 74 69 6e 67 20 49 |..1-37.G|etting I|
|000011c0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 41 62 6f 75 74 |nformati|on About|
|000011d0| 20 61 20 43 6f 6d 70 6f | 6e 65 6e 74 14 14 31 2d | a Compo|nent..1-|
|000011e0| 33 39 0d 52 65 74 72 69 | 65 76 69 6e 67 20 43 6f |39.Retri|eving Co|
|000011f0| 6d 70 6f 6e 65 6e 74 20 | 45 72 72 6f 72 73 14 14 |mponent |Errors..|
|00001200| 31 2d 34 30 0d 52 6f 75 | 74 69 6e 65 73 20 66 6f |1-40.Rou|tines fo|
|00001210| 72 20 43 6f 6d 70 6f 6e | 65 6e 74 73 14 14 31 2d |r Compon|ents..1-|
|00001220| 34 31 0d 52 65 67 69 73 | 74 65 72 69 6e 67 20 43 |41.Regis|tering C|
|00001230| 6f 6d 70 6f 6e 65 6e 74 | 73 14 14 31 2d 34 32 0d |omponent|s..1-42.|
|00001240| 44 69 73 70 61 74 63 68 | 69 6e 67 20 74 6f 20 43 |Dispatch|ing to C|
|00001250| 6f 6d 70 6f 6e 65 6e 74 | 20 52 6f 75 74 69 6e 65 |omponent| Routine|
|00001260| 73 14 14 31 2d 34 36 0d | 53 65 74 74 69 6e 67 20 |s..1-46.|Setting |
|00001270| 43 6f 6d 70 6f 6e 65 6e | 74 20 45 72 72 6f 72 73 |Componen|t Errors|
|00001280| 14 14 31 2d 34 39 0d 57 | 6f 72 6b 69 6e 67 20 57 |..1-49.W|orking W|
|00001290| 69 74 68 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 52 65 |ith Comp|onent Re|
|000012a0| 66 65 72 65 6e 63 65 20 | 43 6f 6e 73 74 61 6e 74 |ference |Constant|
|000012b0| 73 14 14 31 2d 34 39 0d | 41 63 63 65 73 73 69 6e |s..1-49.|Accessin|
|000012c0| 67 20 61 20 43 6f 6d 70 | 6f 6e 65 6e 74 d5 73 20 |g a Comp|onent.s |
|000012d0| 52 65 73 6f 75 72 63 65 | 20 46 69 6c 65 14 14 31 |Resource| File..1|
|000012e0| 2d 35 31 0d 43 61 6c 6c | 69 6e 67 20 4f 74 68 65 |-51.Call|ing Othe|
|000012f0| 72 20 43 6f 6d 70 6f 6e | 65 6e 74 73 14 14 31 2d |r Compon|ents..1-|
|00001300| 35 32 0d 48 69 64 69 6e | 67 20 43 6f 6d 70 6f 6e |52.Hidin|g Compon|
|00001310| 65 6e 74 73 14 14 31 2d | 35 34 0d 4d 61 6e 61 67 |ents..1-|54.Manag|
|00001320| 69 6e 67 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 43 6f |ing Comp|onent Co|
|00001330| 6e 6e 65 63 74 69 6f 6e | 73 14 14 31 2d 35 37 0d |nnection|s..1-57.|
|00001340| 53 75 6d 6d 61 72 79 20 | 6f 66 20 74 68 65 20 43 |Summary |of the C|
|00001350| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00001360| 14 14 31 2d 36 31 0d 50 | 61 73 63 61 6c 20 53 75 |..1-61.P|ascal Su|
|00001370| 6d 6d 61 72 79 14 14 31 | 2d 36 31 0d 43 6f 6e 73 |mmary..1|-61.Cons|
|00001380| 74 61 6e 74 73 14 14 31 | 2d 36 31 0d 44 61 74 61 |tants..1|-61.Data|
|00001390| 20 53 74 72 75 63 74 75 | 72 65 73 14 14 31 2d 36 | Structu|res..1-6|
|000013a0| 32 0d 52 6f 75 74 69 6e | 65 73 20 66 6f 72 20 41 |2.Routin|es for A|
|000013b0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 14 14 31 2d 36 |pplicati|ons..1-6|
|000013c0| 33 0d 52 6f 75 74 69 6e | 65 73 20 66 6f 72 20 43 |3.Routin|es for C|
|000013d0| 6f 6d 70 6f 6e 65 6e 74 | 73 14 14 31 2d 36 34 0d |omponent|s..1-64.|
|000013e0| 52 65 73 75 6c 74 20 43 | 6f 64 65 73 14 14 31 2d |Result C|odes..1-|
|000013f0| 36 36 0d 43 20 53 75 6d | 6d 61 72 79 14 14 31 2d |66.C Sum|mary..1-|
|00001400| 36 36 0d 43 6f 6e 73 74 | 61 6e 74 73 14 14 31 2d |66.Const|ants..1-|
|00001410| 36 36 0d 44 61 74 61 20 | 53 74 72 75 63 74 75 72 |66.Data |Structur|
|00001420| 65 73 14 14 31 2d 36 37 | 0d 52 6f 75 74 69 6e 65 |es..1-67|.Routine|
|00001430| 73 20 66 6f 72 20 41 70 | 70 6c 69 63 61 74 69 6f |s for Ap|plicatio|
|00001440| 6e 73 14 14 31 2d 36 39 | 0d 52 6f 75 74 69 6e 65 |ns..1-69|.Routine|
|00001450| 73 20 66 6f 72 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |s for Co|mponents|
|00001460| 14 14 31 2d 36 39 0d 52 | 65 73 75 6c 74 20 43 6f |..1-69.R|esult Co|
|00001470| 64 65 73 14 14 31 2d 37 | 31 0d 46 69 67 75 72 65 |des..1-7|1.Figure|
|00001480| 73 20 61 6e 64 20 4c 69 | 73 74 69 6e 67 73 0d 43 |s and Li|stings.C|
|00001490| 68 61 70 74 65 72 20 31 | 09 54 68 65 20 43 6f 6d |hapter 1|.The Com|
|000014a0| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 14 14 |ponent M|anager..|
|000014b0| 31 2d 31 0d 4c 69 73 74 | 69 6e 67 20 31 2d 31 09 |1-1.List|ing 1-1.|
|000014c0| 46 69 6e 64 69 6e 67 20 | 61 20 63 6f 6d 70 6f 6e |Finding |a compon|
|000014d0| 65 6e 74 14 14 31 2d 37 | 0d 4c 69 73 74 69 6e 67 |ent..1-7|.Listing|
|000014e0| 20 31 2d 32 09 44 72 61 | 77 65 72 20 63 6f 6d 70 | 1-2.Dra|wer comp|
|000014f0| 6f 6e 65 6e 74 14 14 31 | 2d 31 30 0d 4c 69 73 74 |onent..1|-10.List|
|00001500| 69 6e 67 20 31 2d 33 09 | 52 65 67 69 73 74 65 72 |ing 1-3.|Register|
|00001510| 69 6e 67 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 14 |ing a co|mponent.|
|00001520| 14 31 2d 31 38 0d 46 69 | 67 75 72 65 20 31 2d 31 |.1-18.Fi|gure 1-1|
|00001530| 09 53 75 70 70 6f 72 74 | 69 6e 67 20 6d 75 6c 74 |.Support|ing mult|
|00001540| 69 70 6c 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 63 |iple com|ponent c|
|00001550| 6f 6e 6e 65 63 74 69 6f | 6e 73 14 14 31 2d 31 39 |onnectio|ns..1-19|
|00001560| 0d 46 69 67 75 72 65 20 | 31 2d 32 09 49 6e 74 65 |.Figure |1-2.Inte|
|00001570| 72 61 63 74 69 6f 6e 20 | 62 65 74 77 65 65 6e 20 |raction |between |
|00001580| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 46 6c 61 |the comp|onentFla|
|00001590| 67 73 20 61 6e 64 20 63 | 6f 6d 70 6f 6e 65 6e 74 |gs and c|omponent|
|000015a0| 46 6c 61 67 73 4d 61 73 | 6b 20 66 69 65 6c 64 73 |FlagsMas|k fields|
|000015b0| 14 14 31 2d 32 37 0d 4c | 69 73 74 69 6e 67 20 31 |..1-27.L|isting 1|
|000015c0| 2d 34 09 43 6f 6d 70 6f | 6e 65 6e 74 20 72 65 73 |-4.Compo|nent res|
|000015d0| 6f 75 72 63 65 14 14 31 | 2d 33 32 0d 4c 69 73 74 |ource..1|-32.List|
|000015e0| 69 6e 67 20 31 2d 35 09 | 44 65 6c 65 67 61 74 69 |ing 1-5.|Delegati|
|000015f0| 6e 67 20 61 20 72 65 71 | 75 65 73 74 20 74 6f 20 |ng a req|uest to |
|00001600| 61 6e 6f 74 68 65 72 20 | 63 6f 6d 70 6f 6e 65 6e |another |componen|
|00001610| 74 14 14 31 2d 35 33 0d | 54 68 65 20 43 6f 6d 70 |t..1-53.|The Comp|
|00001620| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 0d 43 6f |onent Ma|nager.Co|
|00001630| 6e 74 65 6e 74 73 0d 49 | 6e 74 72 6f 64 75 63 74 |ntents.I|ntroduct|
|00001640| 69 6f 6e 20 74 6f 20 74 | 68 65 20 43 6f 6d 70 6f |ion to t|he Compo|
|00001650| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 14 14 31 2d |nent Man|ager..1-|
|00001660| 33 0d 41 62 6f 75 74 20 | 43 6f 6d 70 6f 6e 65 6e |3.About |Componen|
|00001670| 74 73 14 14 31 2d 34 0d | 55 73 69 6e 67 20 74 68 |ts..1-4.|Using th|
|00001680| 65 20 43 6f 6d 70 6f 6e | 65 6e 74 20 4d 61 6e 61 |e Compon|ent Mana|
|00001690| 67 65 72 14 14 31 2d 35 | 0d 47 65 74 74 69 6e 67 |ger..1-5|.Getting|
|000016a0| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 41 62 6f | Informa|tion Abo|
|000016b0| 75 74 20 74 68 65 20 43 | 6f 6d 70 6f 6e 65 6e 74 |ut the C|omponent|
|000016c0| 20 4d 61 6e 61 67 65 72 | 14 14 31 2d 36 0d 46 69 | Manager|..1-6.Fi|
|000016d0| 6e 64 69 6e 67 20 61 6e | 64 20 55 73 69 6e 67 20 |nding an|d Using |
|000016e0| 43 6f 6d 70 6f 6e 65 6e | 74 73 14 14 31 2d 36 0d |Componen|ts..1-6.|
|000016f0| 4f 70 65 6e 69 6e 67 20 | 61 20 43 6f 6e 6e 65 63 |Opening |a Connec|
|00001700| 74 69 6f 6e 20 74 6f 20 | 61 20 43 6f 6d 70 6f 6e |tion to |a Compon|
|00001710| 65 6e 74 14 14 31 2d 36 | 0d 46 69 6e 64 69 6e 67 |ent..1-6|.Finding|
|00001720| 20 61 20 53 70 65 63 69 | 66 69 63 20 43 6f 6d 70 | a Speci|fic Comp|
|00001730| 6f 6e 65 6e 74 14 14 31 | 2d 36 0d 4f 70 65 6e 69 |onent..1|-6.Openi|
|00001740| 6e 67 20 61 20 43 6f 6e | 6e 65 63 74 69 6f 6e 20 |ng a Con|nection |
|00001750| 74 6f 20 61 20 53 70 65 | 63 69 66 69 63 20 43 6f |to a Spe|cific Co|
|00001760| 6d 70 6f 6e 65 6e 74 14 | 14 31 2d 37 0d 55 73 69 |mponent.|.1-7.Usi|
|00001770| 6e 67 20 61 20 43 6f 6d | 70 6f 6e 65 6e 74 14 14 |ng a Com|ponent..|
|00001780| 31 2d 37 0d 43 6c 6f 73 | 69 6e 67 20 61 20 43 6f |1-7.Clos|ing a Co|
|00001790| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 61 20 43 6f |nnection| to a Co|
|000017a0| 6d 70 6f 6e 65 6e 74 14 | 14 31 2d 38 0d 43 72 65 |mponent.|.1-8.Cre|
|000017b0| 61 74 69 6e 67 20 43 6f | 6d 70 6f 6e 65 6e 74 73 |ating Co|mponents|
|000017c0| 14 14 31 2d 38 0d 54 68 | 65 20 53 74 72 75 63 74 |..1-8.Th|e Struct|
|000017d0| 75 72 65 20 6f 66 20 61 | 20 43 6f 6d 70 6f 6e 65 |ure of a| Compone|
|000017e0| 6e 74 14 14 31 2d 39 0d | 44 65 66 69 6e 69 6e 67 |nt..1-9.|Defining|
|000017f0| 20 59 6f 75 72 20 43 6f | 6d 70 6f 6e 65 6e 74 d5 | Your Co|mponent.|
|00001800| 73 20 49 6e 74 65 72 66 | 61 63 65 73 14 14 31 2d |s Interf|aces..1-|
|00001810| 31 35 0d 4d 61 6e 61 67 | 69 6e 67 20 59 6f 75 72 |15.Manag|ing Your|
|00001820| 20 43 6f 6d 70 6f 6e 65 | 6e 74 14 14 31 2d 31 37 | Compone|nt..1-17|
|00001830| 0d 52 65 67 69 73 74 65 | 72 69 6e 67 20 59 6f 75 |.Registe|ring You|
|00001840| 72 20 43 6f 6d 70 6f 6e | 65 6e 74 14 14 31 2d 31 |r Compon|ent..1-1|
|00001850| 37 0d 45 73 74 61 62 6c | 69 73 68 69 6e 67 20 61 |7.Establ|ishing a|
|00001860| 6e 64 20 4d 61 6e 61 67 | 69 6e 67 20 43 6f 6e 6e |nd Manag|ing Conn|
|00001870| 65 63 74 69 6f 6e 73 14 | 14 31 2d 31 38 0d 52 65 |ections.|.1-18.Re|
|00001880| 63 65 69 76 69 6e 67 20 | 52 65 71 75 65 73 74 73 |ceiving |Requests|
|00001890| 20 66 6f 72 20 53 65 72 | 76 69 63 65 14 14 31 2d | for Ser|vice..1-|
|000018a0| 32 30 0d 48 61 6e 64 6c | 69 6e 67 20 52 65 71 75 |20.Handl|ing Requ|
|000018b0| 65 73 74 73 20 66 6f 72 | 20 53 65 72 76 69 63 65 |ests for| Service|
|000018c0| 14 14 31 2d 32 30 0d 52 | 65 74 75 72 6e 69 6e 67 |..1-20.R|eturning|
|000018d0| 20 61 6e 20 45 72 72 6f | 72 20 43 6f 64 65 14 14 | an Erro|r Code..|
|000018e0| 31 2d 32 34 0d 52 65 66 | 65 72 65 6e 63 65 20 74 |1-24.Ref|erence t|
|000018f0| 6f 20 74 68 65 20 43 6f | 6d 70 6f 6e 65 6e 74 20 |o the Co|mponent |
|00001900| 4d 61 6e 61 67 65 72 14 | 14 31 2d 32 34 0d 44 61 |Manager.|.1-24.Da|
|00001910| 74 61 20 53 74 72 75 63 | 74 75 72 65 73 20 66 6f |ta Struc|tures fo|
|00001920| 72 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 73 14 14 |r Applic|ations..|
|00001930| 31 2d 32 34 0d 43 6f 6d | 70 6f 6e 65 6e 74 20 44 |1-24.Com|ponent D|
|00001940| 65 73 63 72 69 70 74 69 | 6f 6e 14 14 31 2d 32 34 |escripti|on..1-24|
|00001950| 0d 44 61 74 61 20 53 74 | 72 75 63 74 75 72 65 73 |.Data St|ructures|
|00001960| 20 66 6f 72 20 43 6f 6d | 70 6f 6e 65 6e 74 73 14 | for Com|ponents.|
|00001970| 14 31 2d 32 37 0d 43 6f | 6d 70 6f 6e 65 6e 74 20 |.1-27.Co|mponent |
|00001980| 44 65 73 63 72 69 70 74 | 69 6f 6e 14 14 31 2d 32 |Descript|ion..1-2|
|00001990| 37 0d 43 6f 6d 70 6f 6e | 65 6e 74 20 50 61 72 61 |7.Compon|ent Para|
|000019a0| 6d 65 74 65 72 73 14 14 | 31 2d 32 39 0d 52 65 73 |meters..|1-29.Res|
|000019b0| 6f 75 72 63 65 73 14 14 | 31 2d 33 30 0d 43 6f 6d |ources..|1-30.Com|
|000019c0| 70 6f 6e 65 6e 74 20 52 | 65 73 6f 75 72 63 65 14 |ponent R|esource.|
|000019d0| 14 31 2d 33 31 0d 52 6f | 75 74 69 6e 65 73 20 66 |.1-31.Ro|utines f|
|000019e0| 6f 72 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 73 14 |or Appli|cations.|
|000019f0| 14 31 2d 33 33 0d 46 69 | 6e 64 69 6e 67 20 43 6f |.1-33.Fi|nding Co|
|00001a00| 6d 70 6f 6e 65 6e 74 73 | 14 14 31 2d 33 33 0d 4f |mponents|..1-33.O|
|00001a10| 70 65 6e 69 6e 67 20 61 | 6e 64 20 43 6c 6f 73 69 |pening a|nd Closi|
|00001a20| 6e 67 20 43 6f 6d 70 6f | 6e 65 6e 74 73 14 14 31 |ng Compo|nents..1|
|00001a30| 2d 33 37 0d 47 65 74 74 | 69 6e 67 20 49 6e 66 6f |-37.Gett|ing Info|
|00001a40| 72 6d 61 74 69 6f 6e 20 | 41 62 6f 75 74 20 61 20 |rmation |About a |
|00001a50| 43 6f 6d 70 6f 6e 65 6e | 74 14 14 31 2d 33 39 0d |Componen|t..1-39.|
|00001a60| 52 65 74 72 69 65 76 69 | 6e 67 20 43 6f 6d 70 6f |Retrievi|ng Compo|
|00001a70| 6e 65 6e 74 20 45 72 72 | 6f 72 73 14 14 31 2d 34 |nent Err|ors..1-4|
|00001a80| 30 0d 52 6f 75 74 69 6e | 65 73 20 66 6f 72 20 43 |0.Routin|es for C|
|00001a90| 6f 6d 70 6f 6e 65 6e 74 | 73 14 14 31 2d 34 31 0d |omponent|s..1-41.|
|00001aa0| 52 65 67 69 73 74 65 72 | 69 6e 67 20 43 6f 6d 70 |Register|ing Comp|
|00001ab0| 6f 6e 65 6e 74 73 14 14 | 31 2d 34 32 0d 44 69 73 |onents..|1-42.Dis|
|00001ac0| 70 61 74 63 68 69 6e 67 | 20 74 6f 20 43 6f 6d 70 |patching| to Comp|
|00001ad0| 6f 6e 65 6e 74 20 52 6f | 75 74 69 6e 65 73 14 14 |onent Ro|utines..|
|00001ae0| 31 2d 34 36 0d 53 65 74 | 74 69 6e 67 20 43 6f 6d |1-46.Set|ting Com|
|00001af0| 70 6f 6e 65 6e 74 20 45 | 72 72 6f 72 73 14 14 31 |ponent E|rrors..1|
|00001b00| 2d 34 39 0d 57 6f 72 6b | 69 6e 67 20 57 69 74 68 |-49.Work|ing With|
|00001b10| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 52 65 66 65 72 | Compone|nt Refer|
|00001b20| 65 6e 63 65 20 43 6f 6e | 73 74 61 6e 74 73 14 14 |ence Con|stants..|
|00001b30| 31 2d 34 39 0d 41 63 63 | 65 73 73 69 6e 67 20 61 |1-49.Acc|essing a|
|00001b40| 20 43 6f 6d 70 6f 6e 65 | 6e 74 d5 73 20 52 65 73 | Compone|nt.s Res|
|00001b50| 6f 75 72 63 65 20 46 69 | 6c 65 14 14 31 2d 35 31 |ource Fi|le..1-51|
|00001b60| 0d 43 61 6c 6c 69 6e 67 | 20 4f 74 68 65 72 20 43 |.Calling| Other C|
|00001b70| 6f 6d 70 6f 6e 65 6e 74 | 73 14 14 31 2d 35 32 0d |omponent|s..1-52.|
|00001b80| 48 69 64 69 6e 67 20 43 | 6f 6d 70 6f 6e 65 6e 74 |Hiding C|omponent|
|00001b90| 73 14 14 31 2d 35 34 0d | 4d 61 6e 61 67 69 6e 67 |s..1-54.|Managing|
|00001ba0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 43 6f 6e 6e 65 | Compone|nt Conne|
|00001bb0| 63 74 69 6f 6e 73 14 14 | 31 2d 35 37 0d 53 75 6d |ctions..|1-57.Sum|
|00001bc0| 6d 61 72 79 20 6f 66 20 | 74 68 65 20 43 6f 6d 70 |mary of |the Comp|
|00001bd0| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 14 14 31 |onent Ma|nager..1|
|00001be0| 2d 36 31 0d 50 61 73 63 | 61 6c 20 53 75 6d 6d 61 |-61.Pasc|al Summa|
|00001bf0| 72 79 14 14 31 2d 36 31 | 0d 43 6f 6e 73 74 61 6e |ry..1-61|.Constan|
|00001c00| 74 73 14 14 31 2d 36 31 | 0d 44 61 74 61 20 53 74 |ts..1-61|.Data St|
|00001c10| 72 75 63 74 75 72 65 73 | 14 14 31 2d 36 32 0d 52 |ructures|..1-62.R|
|00001c20| 6f 75 74 69 6e 65 73 20 | 66 6f 72 20 41 70 70 6c |outines |for Appl|
|00001c30| 69 63 61 74 69 6f 6e 73 | 14 14 31 2d 36 33 0d 52 |ications|..1-63.R|
|00001c40| 6f 75 74 69 6e 65 73 20 | 66 6f 72 20 43 6f 6d 70 |outines |for Comp|
|00001c50| 6f 6e 65 6e 74 73 14 14 | 31 2d 36 34 0d 52 65 73 |onents..|1-64.Res|
|00001c60| 75 6c 74 20 43 6f 64 65 | 73 14 14 31 2d 36 36 0d |ult Code|s..1-66.|
|00001c70| 43 20 53 75 6d 6d 61 72 | 79 14 14 31 2d 36 36 0d |C Summar|y..1-66.|
|00001c80| 43 6f 6e 73 74 61 6e 74 | 73 14 14 31 2d 36 36 0d |Constant|s..1-66.|
|00001c90| 44 61 74 61 20 53 74 72 | 75 63 74 75 72 65 73 14 |Data Str|uctures.|
|00001ca0| 14 31 2d 36 37 0d 52 6f | 75 74 69 6e 65 73 20 66 |.1-67.Ro|utines f|
|00001cb0| 6f 72 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 73 14 |or Appli|cations.|
|00001cc0| 14 31 2d 36 39 0d 52 6f | 75 74 69 6e 65 73 20 66 |.1-69.Ro|utines f|
|00001cd0| 6f 72 20 43 6f 6d 70 6f | 6e 65 6e 74 73 14 14 31 |or Compo|nents..1|
|00001ce0| 2d 36 39 0d 52 65 73 75 | 6c 74 20 43 6f 64 65 73 |-69.Resu|lt Codes|
|00001cf0| 14 14 31 2d 37 31 0d 54 | 68 65 20 43 6f 6d 70 6f |..1-71.T|he Compo|
|00001d00| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 0d 54 68 69 |nent Man|ager.Thi|
|00001d10| 73 20 63 68 61 70 74 65 | 72 20 64 65 73 63 72 69 |s chapte|r descri|
|00001d20| 62 65 73 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |bes the |Componen|
|00001d30| 74 20 4d 61 6e 61 67 65 | 72 2e 20 54 68 65 20 43 |t Manage|r. The C|
|00001d40| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00001d50| 20 61 6c 6c 6f 77 73 20 | 61 70 70 6c 69 63 61 74 | allows |applicat|
|00001d60| 69 6f 6e 73 20 74 6f 20 | 66 69 6e 64 20 61 6e 64 |ions to |find and|
|00001d70| 20 75 74 69 6c 69 7a 65 | 20 70 72 65 64 65 66 69 | utilize| predefi|
|00001d80| 6e 65 64 20 63 6c 61 73 | 73 65 73 20 6f 66 20 73 |ned clas|ses of s|
|00001d90| 6f 66 74 77 61 72 65 20 | 6f 62 6a 65 63 74 73 20 |oftware |objects |
|00001da0| 61 74 20 72 75 6e 20 74 | 69 6d 65 2e 20 54 68 65 |at run t|ime. The|
|00001db0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00001dc0| 65 72 20 61 6c 73 6f 20 | 70 72 6f 76 69 64 65 73 |er also |provides|
|00001dd0| 20 73 65 72 76 69 63 65 | 73 20 74 6f 20 69 6e 64 | service|s to ind|
|00001de0| 69 76 69 64 75 61 6c 20 | 63 6f 6d 70 6f 6e 65 6e |ividual |componen|
|00001df0| 74 73 2e 20 59 6f 75 20 | 73 68 6f 75 6c 64 20 72 |ts. You |should r|
|00001e00| 65 61 64 20 74 68 69 73 | 20 63 68 61 70 74 65 72 |ead this| chapter|
|00001e10| 20 69 66 20 79 6f 75 20 | 61 72 65 20 64 65 76 65 | if you |are deve|
|00001e20| 6c 6f 70 69 6e 67 20 61 | 6e 20 61 70 70 6c 69 63 |loping a|n applic|
|00001e30| 61 74 69 6f 6e 20 74 68 | 61 74 20 75 73 65 73 20 |ation th|at uses |
|00001e40| 63 6f 6d 70 6f 6e 65 6e | 74 73 2c 20 6f 72 20 69 |componen|ts, or i|
|00001e50| 66 20 79 6f 75 20 70 6c | 61 6e 20 74 6f 20 64 65 |f you pl|an to de|
|00001e60| 76 65 6c 6f 70 20 79 6f | 75 72 20 6f 77 6e 20 63 |velop yo|ur own c|
|00001e70| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 20 0d 54 68 69 73 |omponent|s. .This|
|00001e80| 20 63 68 61 70 74 65 72 | 20 69 73 20 64 69 76 69 | chapter| is divi|
|00001e90| 64 65 64 20 69 6e 74 6f | 20 74 68 65 20 66 6f 6c |ded into| the fol|
|00001ea0| 6c 6f 77 69 6e 67 20 6d | 61 6a 6f 72 20 73 65 63 |lowing m|ajor sec|
|00001eb0| 74 69 6f 6e 73 3a 0d 6e | 09 d2 49 6e 74 72 6f 64 |tions:.n|..Introd|
|00001ec0| 75 63 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 43 6f |uction t|o the Co|
|00001ed0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 d3 |mponent |Manager.|
|00001ee0| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 67 65 6e 65 | contain|s a gene|
|00001ef0| 72 61 6c 20 69 6e 74 72 | 6f 64 75 63 74 69 6f 6e |ral intr|oduction|
|00001f00| 20 74 6f 20 74 68 65 20 | 66 65 61 74 75 72 65 73 | to the |features|
|00001f10| 20 70 72 6f 76 69 64 65 | 64 20 62 79 20 74 68 65 | provide|d by the|
|00001f20| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00001f30| 65 72 0d 6e 09 d2 41 62 | 6f 75 74 20 43 6f 6d 70 |er.n..Ab|out Comp|
|00001f40| 6f 6e 65 6e 74 73 d3 20 | 70 72 6f 76 69 64 65 73 |onents. |provides|
|00001f50| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 6f 6e 20 63 | backgro|und on c|
|00001f60| 6f 6d 70 6f 6e 65 6e 74 | 73 d1 74 68 69 73 20 69 |omponent|s.this i|
|00001f70| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 73 20 75 73 |nformati|on is us|
|00001f80| 65 66 75 6c 20 66 6f 72 | 20 62 6f 74 68 20 61 70 |eful for| both ap|
|00001f90| 70 6c 69 63 61 74 69 6f | 6e 20 64 65 76 65 6c 6f |plicatio|n develo|
|00001fa0| 70 65 72 73 20 61 6e 64 | 20 63 6f 6d 70 6f 6e 65 |pers and| compone|
|00001fb0| 6e 74 20 64 65 76 65 6c | 6f 70 65 72 73 0d 6e 09 |nt devel|opers.n.|
|00001fc0| d2 55 73 69 6e 67 20 74 | 68 65 20 43 6f 6d 70 6f |.Using t|he Compo|
|00001fd0| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 d3 20 64 69 |nent Man|ager. di|
|00001fe0| 73 63 75 73 73 65 73 20 | 68 6f 77 20 74 6f 20 75 |scusses |how to u|
|00001ff0| 73 65 20 74 68 65 20 66 | 61 63 69 6c 69 74 69 65 |se the f|acilitie|
|00002000| 73 20 6f 66 20 74 68 65 | 20 43 6f 6d 70 6f 6e 65 |s of the| Compone|
|00002010| 6e 74 20 4d 61 6e 61 67 | 65 72 20 74 6f 20 63 61 |nt Manag|er to ca|
|00002020| 6c 6c 20 63 6f 6d 70 6f | 6e 65 6e 74 73 20 0d 6e |ll compo|nents .n|
|00002030| 09 d2 43 72 65 61 74 69 | 6e 67 20 43 6f 6d 70 6f |..Creati|ng Compo|
|00002040| 6e 65 6e 74 73 d3 20 64 | 69 73 63 75 73 73 65 73 |nents. d|iscusses|
|00002050| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 20 61 | the str|ucture a|
|00002060| 6e 64 20 72 65 73 70 6f | 6e 73 69 62 69 6c 69 74 |nd respo|nsibilit|
|00002070| 69 65 73 20 6f 66 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ies of c|omponent|
|00002080| 73 20 79 6f 75 20 63 72 | 65 61 74 65 20 61 6e 64 |s you cr|eate and|
|00002090| 20 64 65 73 63 72 69 62 | 65 73 20 68 6f 77 20 74 | describ|es how t|
|000020a0| 6f 20 63 72 65 61 74 65 | 20 61 20 63 6f 6d 70 6f |o create| a compo|
|000020b0| 6e 65 6e 74 20 0d 6e 09 | d2 52 65 66 65 72 65 6e |nent .n.|.Referen|
|000020c0| 63 65 20 74 6f 20 74 68 | 65 20 43 6f 6d 70 6f 6e |ce to th|e Compon|
|000020d0| 65 6e 74 20 4d 61 6e 61 | 67 65 72 d3 20 64 65 73 |ent Mana|ger. des|
|000020e0| 63 72 69 62 65 73 20 74 | 68 65 20 64 61 74 61 20 |cribes t|he data |
|000020f0| 73 74 72 75 63 74 75 72 | 65 73 20 61 6e 64 20 72 |structur|es and r|
|00002100| 6f 75 74 69 6e 65 73 20 | 70 72 6f 76 69 64 65 64 |outines |provided|
|00002110| 20 62 79 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e | by the |Componen|
|00002120| 74 20 4d 61 6e 61 67 65 | 72 0d 6e 09 d2 53 75 6d |t Manage|r.n..Sum|
|00002130| 6d 61 72 79 20 6f 66 20 | 74 68 65 20 43 6f 6d 70 |mary of |the Comp|
|00002140| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 d3 20 63 |onent Ma|nager. c|
|00002150| 6f 6e 74 61 69 6e 73 20 | 63 6f 6e 64 65 6e 73 65 |ontains |condense|
|00002160| 64 20 6c 69 73 74 69 6e | 67 73 20 6f 66 20 74 68 |d listin|gs of th|
|00002170| 65 20 63 6f 6e 73 74 61 | 6e 74 73 2c 20 64 61 74 |e consta|nts, dat|
|00002180| 61 20 73 74 72 75 63 74 | 75 72 65 73 2c 20 61 6e |a struct|ures, an|
|00002190| 64 20 72 6f 75 74 69 6e | 65 73 20 73 75 70 70 6f |d routin|es suppo|
|000021a0| 72 74 65 64 20 62 79 20 | 74 68 65 20 43 6f 6d 70 |rted by |the Comp|
|000021b0| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 20 69 6e |onent Ma|nager in|
|000021c0| 20 50 61 73 63 61 6c 20 | 61 6e 64 20 69 6e 20 43 | Pascal |and in C|
|000021d0| 0d 53 65 76 65 72 61 6c | 20 6f 66 20 74 68 65 20 |.Several| of the |
|000021e0| 73 65 63 74 69 6f 6e 73 | 20 69 6e 20 74 68 69 73 |sections| in this|
|000021f0| 20 63 68 61 70 74 65 72 | 20 61 72 65 20 64 69 76 | chapter| are div|
|00002200| 69 64 65 64 20 69 6e 74 | 6f 20 74 77 6f 20 6d 61 |ided int|o two ma|
|00002210| 69 6e 20 74 6f 70 69 63 | 73 3a 20 6f 6e 65 20 66 |in topic|s: one f|
|00002220| 6f 72 20 64 65 76 65 6c | 6f 70 65 72 73 20 6f 66 |or devel|opers of|
|00002230| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 74 68 | applica|tions th|
|00002240| 61 74 20 75 73 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |at use c|omponent|
|00002250| 73 20 61 6e 64 20 6f 6e | 65 20 66 6f 72 20 64 65 |s and on|e for de|
|00002260| 76 65 6c 6f 70 65 72 73 | 20 6f 66 20 63 6f 6d 70 |velopers| of comp|
|00002270| 6f 6e 65 6e 74 73 2e 20 | 49 66 20 79 6f 75 20 61 |onents. |If you a|
|00002280| 72 65 20 64 65 76 65 6c | 6f 70 69 6e 67 20 61 6e |re devel|oping an|
|00002290| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 68 61 | applica|tion tha|
|000022a0| 74 20 77 69 6c 6c 20 75 | 73 65 20 63 6f 6d 70 6f |t will u|se compo|
|000022b0| 6e 65 6e 74 73 2c 20 79 | 6f 75 20 73 68 6f 75 6c |nents, y|ou shoul|
|000022c0| 64 20 66 6f 63 75 73 20 | 6f 6e 20 74 68 65 20 6d |d focus |on the m|
|000022d0| 61 74 65 72 69 61 6c 20 | 74 68 61 74 20 64 65 73 |aterial |that des|
|000022e0| 63 72 69 62 65 73 20 68 | 6f 77 20 74 6f 20 75 73 |cribes h|ow to us|
|000022f0| 65 20 65 78 69 73 74 69 | 6e 67 20 63 6f 6d 70 6f |e existi|ng compo|
|00002300| 6e 65 6e 74 73 d1 79 6f | 75 20 64 6f 20 6e 6f 74 |nents.yo|u do not|
|00002310| 20 6e 65 65 64 20 74 6f | 20 72 65 61 64 20 74 68 | need to| read th|
|00002320| 65 20 6d 61 74 65 72 69 | 61 6c 20 74 68 61 74 20 |e materi|al that |
|00002330| 64 65 73 63 72 69 62 65 | 73 20 68 6f 77 20 74 6f |describe|s how to|
|00002340| 20 63 72 65 61 74 65 20 | 61 20 63 6f 6d 70 6f 6e | create |a compon|
|00002350| 65 6e 74 2e 20 49 66 20 | 79 6f 75 20 61 72 65 20 |ent. If |you are |
|00002360| 64 65 76 65 6c 6f 70 69 | 6e 67 20 61 20 63 6f 6d |developi|ng a com|
|00002370| 70 6f 6e 65 6e 74 2c 20 | 68 6f 77 65 76 65 72 2c |ponent, |however,|
|00002380| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 62 65 20 66 | you sho|uld be f|
|00002390| 61 6d 69 6c 69 61 72 20 | 77 69 74 68 20 61 6c 6c |amiliar |with all|
|000023a0| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|000023b0| 20 69 6e 20 74 68 69 73 | 20 63 68 61 70 74 65 72 | in this| chapter|
|000023c0| 2e 20 46 6f 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |. For in|formatio|
|000023d0| 6e 20 6f 6e 20 74 68 65 | 20 63 6f 6d 70 6f 6e 65 |n on the| compone|
|000023e0| 6e 74 73 20 74 68 61 74 | 20 41 70 70 6c 65 20 73 |nts that| Apple s|
|000023f0| 75 70 70 6c 69 65 73 20 | 77 69 74 68 20 51 75 69 |upplies |with Qui|
|00002400| 63 6b 54 69 6d 65 2c 20 | 70 6c 65 61 73 65 20 73 |ckTime, |please s|
|00002410| 65 65 20 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |ee Insid|e Macint|
|00002420| 6f 73 68 3a 20 51 75 69 | 63 6b 54 69 6d 65 20 43 |osh: Qui|ckTime C|
|00002430| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 0d 49 6e 74 72 6f |omponent|s..Intro|
|00002440| 64 75 63 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 43 |duction |to the C|
|00002450| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00002460| 0d 54 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d |.The Com|ponent M|
|00002470| 61 6e 61 67 65 72 20 70 | 72 6f 76 69 64 65 73 20 |anager p|rovides |
|00002480| 61 20 64 61 74 61 62 61 | 73 65 20 73 65 72 76 69 |a databa|se servi|
|00002490| 63 65 20 74 68 61 74 20 | 63 6c 61 73 73 69 66 69 |ce that |classifi|
|000024a0| 65 73 20 73 6f 66 74 77 | 61 72 65 20 6f 62 6a 65 |es softw|are obje|
|000024b0| 63 74 73 20 62 79 20 66 | 75 6e 63 74 69 6f 6e 2e |cts by f|unction.|
|000024c0| 20 49 6e 20 6d 75 63 68 | 20 74 68 65 20 73 61 6d | In much| the sam|
|000024d0| 65 20 77 61 79 20 74 68 | 61 74 20 74 68 65 20 52 |e way th|at the R|
|000024e0| 65 73 6f 75 72 63 65 20 | 4d 61 6e 61 67 65 72 20 |esource |Manager |
|000024f0| 61 6c 6c 6f 77 73 20 61 | 70 70 6c 69 63 61 74 69 |allows a|pplicati|
|00002500| 6f 6e 73 20 74 68 61 74 | 20 61 72 65 20 72 75 6e |ons that| are run|
|00002510| 6e 69 6e 67 20 74 6f 20 | 61 63 63 65 73 73 20 64 |ning to |access d|
|00002520| 61 74 61 20 6f 62 6a 65 | 63 74 73 20 64 79 6e 61 |ata obje|cts dyna|
|00002530| 6d 69 63 61 6c 6c 79 2c | 20 74 68 65 20 43 6f 6d |mically,| the Com|
|00002540| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 20 70 |ponent M|anager p|
|00002550| 72 6f 76 69 64 65 73 20 | 73 65 72 76 69 63 65 73 |rovides |services|
|00002560| 20 74 68 61 74 20 61 6c | 6c 6f 77 20 72 75 6e 2d | that al|low run-|
|00002570| 74 69 6d 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 |time loc|ation of|
|00002580| 20 61 6e 64 20 61 63 63 | 65 73 73 20 74 6f 20 66 | and acc|ess to f|
|00002590| 75 6e 63 74 69 6f 6e 61 | 6c 20 6f 62 6a 65 63 74 |unctiona|l object|
|000025a0| 73 2e 20 54 68 65 20 43 | 6f 6d 70 6f 6e 65 6e 74 |s. The C|omponent|
|000025b0| 20 4d 61 6e 61 67 65 72 | d5 73 20 64 61 74 61 62 | Manager|.s datab|
|000025c0| 61 73 65 20 63 61 70 61 | 62 69 6c 69 74 69 65 73 |ase capa|bilities|
|000025d0| 20 61 72 65 20 61 75 67 | 6d 65 6e 74 65 64 20 62 | are aug|mented b|
|000025e0| 79 20 61 20 64 69 73 70 | 61 74 63 68 20 6d 65 63 |y a disp|atch mec|
|000025f0| 68 61 6e 69 73 6d 20 74 | 68 61 74 20 6d 61 6b 65 |hanism t|hat make|
|00002600| 73 20 63 6f 6d 6d 75 6e | 69 63 61 74 69 6e 67 20 |s commun|icating |
|00002610| 77 69 74 68 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |with com|ponents |
|00002620| 61 73 20 73 69 6d 70 6c | 65 20 61 73 20 75 73 69 |as simpl|e as usi|
|00002630| 6e 67 20 73 74 61 6e 64 | 61 72 64 20 4d 61 63 69 |ng stand|ard Maci|
|00002640| 6e 74 6f 73 68 20 54 6f | 6f 6c 62 6f 78 20 72 6f |ntosh To|olbox ro|
|00002650| 75 74 69 6e 65 73 2e 0d | 54 68 65 20 43 6f 6d 70 |utines..|The Comp|
|00002660| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 20 63 72 |onent Ma|nager cr|
|00002670| 65 61 74 65 73 20 61 20 | 6c 65 76 65 6c 20 6f 66 |eates a |level of|
|00002680| 20 61 62 73 74 72 61 63 | 74 69 6f 6e 20 62 65 74 | abstrac|tion bet|
|00002690| 77 65 65 6e 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |ween com|ponents |
|000026a0| 61 6e 64 20 63 6c 69 65 | 6e 74 73 2c 20 77 68 69 |and clie|nts, whi|
|000026b0| 63 68 20 63 61 6e 20 62 | 65 20 61 70 70 6c 69 63 |ch can b|e applic|
|000026c0| 61 74 69 6f 6e 73 2c 20 | 6f 74 68 65 72 20 63 6f |ations, |other co|
|000026d0| 6d 70 6f 6e 65 6e 74 73 | 2c 20 73 79 73 74 65 6d |mponents|, system|
|000026e0| 20 65 78 74 65 6e 73 69 | 6f 6e 73 2c 20 61 6e 64 | extensi|ons, and|
|000026f0| 20 73 6f 20 6f 6e 2e 20 | 49 6e 73 74 65 61 64 20 | so on. |Instead |
|00002700| 6f 66 20 69 6d 70 6c 65 | 6d 65 6e 74 69 6e 67 20 |of imple|menting |
|00002710| 73 75 70 70 6f 72 74 20 | 66 6f 72 20 61 20 70 61 |support |for a pa|
|00002720| 72 74 69 63 75 6c 61 72 | 20 64 61 74 61 20 66 6f |rticular| data fo|
|00002730| 72 6d 61 74 2c 20 70 72 | 6f 74 6f 63 6f 6c 2c 20 |rmat, pr|otocol, |
|00002740| 6f 72 20 6d 6f 64 65 6c | 20 6f 66 20 61 20 64 65 |or model| of a de|
|00002750| 76 69 63 65 2c 20 79 6f | 75 20 63 61 6e 20 75 73 |vice, yo|u can us|
|00002760| 65 20 61 20 73 74 61 6e | 64 61 72 64 20 69 6e 74 |e a stan|dard int|
|00002770| 65 72 66 61 63 65 20 74 | 68 72 6f 75 67 68 20 77 |erface t|hrough w|
|00002780| 68 69 63 68 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |hich you|r applic|
|00002790| 61 74 69 6f 6e 20 63 6f | 6d 6d 75 6e 69 63 61 74 |ation co|mmunicat|
|000027a0| 65 73 20 77 69 74 68 20 | 61 6c 6c 20 63 6f 6d 70 |es with |all comp|
|000027b0| 6f 6e 65 6e 74 73 20 6f | 66 20 61 20 67 69 76 65 |onents o|f a give|
|000027c0| 6e 20 74 79 70 65 2e 20 | 59 6f 75 20 63 61 6e 20 |n type. |You can |
|000027d0| 74 68 65 6e 20 75 73 65 | 20 74 68 65 20 43 6f 6d |then use| the Com|
|000027e0| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 20 74 |ponent M|anager t|
|000027f0| 6f 20 6c 6f 63 61 74 65 | 20 61 6e 64 20 63 6f 6d |o locate| and com|
|00002800| 6d 75 6e 69 63 61 74 65 | 20 77 69 74 68 20 63 6f |municate| with co|
|00002810| 6d 70 6f 6e 65 6e 74 73 | 20 6f 66 20 74 68 61 74 |mponents| of that|
|00002820| 20 74 79 70 65 2e 20 54 | 68 6f 73 65 20 63 6f 6d | type. T|hose com|
|00002830| 70 6f 6e 65 6e 74 73 2c | 20 69 6e 20 74 75 72 6e |ponents,| in turn|
|00002840| 2c 20 70 72 6f 76 69 64 | 65 20 74 68 65 20 61 70 |, provid|e the ap|
|00002850| 70 72 6f 70 72 69 61 74 | 65 20 73 65 72 76 69 63 |propriat|e servic|
|00002860| 65 73 20 74 6f 20 79 6f | 75 72 20 63 6c 69 65 6e |es to yo|ur clien|
|00002870| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 0d 47 |t applic|ation..G|
|00002880| 69 76 65 6e 20 61 20 70 | 61 72 74 69 63 75 6c 61 |iven a p|articula|
|00002890| 72 20 66 75 6e 63 74 69 | 6f 6e 61 6c 20 74 79 70 |r functi|onal typ|
|000028a0| 65 2c 20 74 68 65 20 43 | 6f 6d 70 6f 6e 65 6e 74 |e, the C|omponent|
|000028b0| 20 4d 61 6e 61 67 65 72 | 20 63 61 6e 20 6c 6f 63 | Manager| can loc|
|000028c0| 61 74 65 20 61 6e 64 20 | 71 75 65 72 79 20 61 6c |ate and |query al|
|000028d0| 6c 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 6f 66 20 |l compon|ents of |
|000028e0| 74 68 61 74 20 74 79 70 | 65 2e 20 59 6f 75 20 63 |that typ|e. You c|
|000028f0| 61 6e 20 66 69 6e 64 20 | 6f 75 74 20 68 6f 77 20 |an find |out how |
|00002900| 6d 61 6e 79 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |many com|ponents |
|00002910| 6f 66 20 61 20 73 70 65 | 63 69 66 69 63 20 74 79 |of a spe|cific ty|
|00002920| 70 65 20 61 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |pe are a|vailable|
|00002930| 20 61 6e 64 20 79 6f 75 | 20 63 61 6e 20 67 65 74 | and you| can get|
|00002940| 20 66 75 72 74 68 65 72 | 20 64 65 74 61 69 6c 73 | further| details|
|00002950| 20 61 62 6f 75 74 20 61 | 20 63 6f 6d 70 6f 6e 65 | about a| compone|
|00002960| 6e 74 d5 73 20 63 61 70 | 61 62 69 6c 69 74 69 65 |nt.s cap|abilitie|
|00002970| 73 20 77 69 74 68 6f 75 | 74 20 68 61 76 69 6e 67 |s withou|t having|
|00002980| 20 74 6f 20 6f 70 65 6e | 20 69 74 20 66 69 72 73 | to open| it firs|
|00002990| 74 2e 20 46 6f 72 20 65 | 61 63 68 20 63 6f 6d 70 |t. For e|ach comp|
|000029a0| 6f 6e 65 6e 74 2c 20 74 | 68 65 20 43 6f 6d 70 6f |onent, t|he Compo|
|000029b0| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 20 6b 65 65 |nent Man|ager kee|
|000029c0| 70 73 20 74 72 61 63 6b | 20 6f 66 20 6d 61 6e 79 |ps track| of many|
|000029d0| 20 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 73 | charact|eristics|
|000029e0| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 69 74 73 20 |, includ|ing its |
|000029f0| 6e 61 6d 65 2c 20 69 63 | 6f 6e 2c 20 61 6e 64 20 |name, ic|on, and |
|00002a00| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 73 74 72 69 |informat|ion stri|
|00002a10| 6e 67 2e 0d 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ng..For |example,|
|00002a20| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 6f 66 20 74 | compone|nts of t|
|00002a30| 79 70 65 20 27 69 6d 64 | 63 27 20 70 72 6f 76 69 |ype 'imd|c' provi|
|00002a40| 64 65 20 69 6d 61 67 65 | 20 64 65 63 6f 6d 70 72 |de image| decompr|
|00002a50| 65 73 73 69 6f 6e 20 73 | 65 72 76 69 63 65 73 2e |ession s|ervices.|
|00002a60| 20 41 6c 6c 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 | All com|ponents |
|00002a70| 6f 66 20 74 79 70 65 20 | 27 69 6d 64 63 27 20 73 |of type |'imdc' s|
|00002a80| 68 61 72 65 20 61 20 63 | 6f 6d 6d 6f 6e 20 61 70 |hare a c|ommon ap|
|00002a90| 70 6c 69 63 61 74 69 6f | 6e 20 69 6e 74 65 72 66 |plicatio|n interf|
|00002aa0| 61 63 65 2c 20 62 75 74 | 20 65 61 63 68 20 69 6d |ace, but| each im|
|00002ab0| 61 67 65 20 64 65 63 6f | 6d 70 72 65 73 73 6f 72 |age deco|mpressor|
|00002ac0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 6d 61 79 20 73 | compone|nt may s|
|00002ad0| 75 70 70 6f 72 74 20 61 | 20 75 6e 69 71 75 65 20 |upport a| unique |
|00002ae0| 63 6f 6d 70 72 65 73 73 | 69 6f 6e 20 74 65 63 68 |compress|ion tech|
|00002af0| 6e 69 71 75 65 20 6f 72 | 20 74 61 6b 65 20 61 64 |nique or| take ad|
|00002b00| 76 61 6e 74 61 67 65 20 | 6f 66 20 61 20 73 70 65 |vantage |of a spe|
|00002b10| 63 69 61 6c 20 68 61 72 | 64 77 61 72 65 20 69 6d |cial har|dware im|
|00002b20| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 2e 20 49 6e |plementa|tion. In|
|00002b30| 64 69 76 69 64 75 61 6c | 20 63 6f 6d 70 6f 6e 65 |dividual| compone|
|00002b40| 6e 74 73 20 6d 61 79 20 | 73 75 70 70 6f 72 74 20 |nts may |support |
|00002b50| 61 64 64 69 74 69 6f 6e | 73 20 74 6f 20 74 68 65 |addition|s to the|
|00002b60| 20 64 65 66 69 6e 65 64 | 20 61 70 70 6c 69 63 61 | defined| applica|
|00002b70| 74 69 6f 6e 20 69 6e 74 | 65 72 66 61 63 65 2c 20 |tion int|erface, |
|00002b80| 61 73 20 6c 6f 6e 67 20 | 61 73 20 74 68 65 79 20 |as long |as they |
|00002b90| 73 75 70 70 6f 72 74 20 | 74 68 65 20 63 6f 6d 6d |support |the comm|
|00002ba0| 6f 6e 20 72 6f 75 74 69 | 6e 65 73 2e 20 41 6e 79 |on routi|nes. Any|
|00002bb0| 20 61 6c 67 6f 72 69 74 | 68 6d 2d 64 65 70 65 6e | algorit|hm-depen|
|00002bc0| 64 65 6e 74 20 6f 72 20 | 69 6d 70 6c 65 6d 65 6e |dent or |implemen|
|00002bd0| 74 61 74 69 6f 6e 2d 64 | 65 70 65 6e 64 65 6e 74 |tation-d|ependent|
|00002be0| 20 76 61 72 69 61 74 69 | 6f 6e 73 20 6f 66 20 74 | variati|ons of t|
|00002bf0| 68 65 20 67 65 6e 65 72 | 61 6c 20 64 65 63 6f 6d |he gener|al decom|
|00002c00| 70 72 65 73 73 69 6f 6e | 20 69 6e 74 65 72 66 61 |pression| interfa|
|00002c10| 63 65 20 63 61 6e 20 62 | 65 20 69 6d 70 6c 65 6d |ce can b|e implem|
|00002c20| 65 6e 74 65 64 20 62 79 | 20 65 61 63 68 20 27 69 |ented by| each 'i|
|00002c30| 6d 64 63 27 20 63 6f 6d | 70 6f 6e 65 6e 74 20 61 |mdc' com|ponent a|
|00002c40| 73 20 65 78 74 65 6e 73 | 69 6f 6e 73 20 74 6f 20 |s extens|ions to |
|00002c50| 74 68 65 20 62 61 73 69 | 63 20 69 6e 74 65 72 66 |the basi|c interf|
|00002c60| 61 63 65 2e 20 46 69 67 | 75 72 65 20 31 2d 31 20 |ace. Fig|ure 1-1 |
|00002c70| 73 68 6f 77 73 20 74 68 | 65 20 72 65 6c 61 74 69 |shows th|e relati|
|00002c80| 6f 6e 73 68 69 70 20 62 | 65 74 77 65 65 6e 20 79 |onship b|etween y|
|00002c90| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |our appl|ication,|
|00002ca0| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|00002cb0| 61 6e 61 67 65 72 2c 20 | 61 6e 64 20 73 65 76 65 |anager, |and seve|
|00002cc0| 72 61 6c 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 2e 20 |ral comp|onents. |
|00002cd0| 0d 54 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d |.The Com|ponent M|
|00002ce0| 61 6e 61 67 65 72 20 61 | 6c 6c 6f 77 73 20 61 20 |anager a|llows a |
|00002cf0| 73 69 6e 67 6c 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |single c|omponent|
|00002d00| 20 74 6f 20 73 65 72 76 | 65 20 6d 75 6c 74 69 70 | to serv|e multip|
|00002d10| 6c 65 20 63 6c 69 65 6e | 74 20 61 70 70 6c 69 63 |le clien|t applic|
|00002d20| 61 74 69 6f 6e 73 20 61 | 74 20 74 68 65 20 73 61 |ations a|t the sa|
|00002d30| 6d 65 20 74 69 6d 65 2e | 20 45 61 63 68 20 63 6c |me time.| Each cl|
|00002d40| 69 65 6e 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ient app|lication|
|00002d50| 20 68 61 73 20 61 20 75 | 6e 69 71 75 65 20 61 63 | has a u|nique ac|
|00002d60| 63 65 73 73 20 70 61 74 | 68 20 74 6f 20 74 68 65 |cess pat|h to the|
|00002d70| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 20 54 68 65 73 | compone|nt. Thes|
|00002d80| 65 20 61 63 63 65 73 73 | 20 70 61 74 68 73 20 61 |e access| paths a|
|00002d90| 72 65 20 63 61 6c 6c 65 | 64 20 63 6f 6e 6e 65 63 |re calle|d connec|
|00002da0| 74 69 6f 6e 73 2e 20 59 | 6f 75 20 69 64 65 6e 74 |tions. Y|ou ident|
|00002db0| 69 66 79 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |ify a co|mponent |
|00002dc0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 62 79 20 73 70 |connecti|on by sp|
|00002dd0| 65 63 69 66 79 69 6e 67 | 20 61 20 63 6f 6d 70 6f |ecifying| a compo|
|00002de0| 6e 65 6e 74 20 69 6e 73 | 74 61 6e 63 65 2e 20 54 |nent ins|tance. T|
|00002df0| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00002e00| 61 67 65 72 20 70 72 6f | 76 69 64 65 73 20 74 68 |ager pro|vides th|
|00002e10| 69 73 20 63 6f 6d 70 6f | 6e 65 6e 74 20 69 6e 73 |is compo|nent ins|
|00002e20| 74 61 6e 63 65 20 74 6f | 20 79 6f 75 72 20 61 70 |tance to| your ap|
|00002e30| 70 6c 69 63 61 74 69 6f | 6e 20 77 68 65 6e 20 79 |plicatio|n when y|
|00002e40| 6f 75 20 6f 70 65 6e 20 | 61 20 63 6f 6e 6e 65 63 |ou open |a connec|
|00002e50| 74 69 6f 6e 20 74 6f 20 | 61 20 63 6f 6d 70 6f 6e |tion to |a compon|
|00002e60| 65 6e 74 2e 20 54 68 65 | 20 63 6f 6d 70 6f 6e 65 |ent. The| compone|
|00002e70| 6e 74 20 6d 61 69 6e 74 | 61 69 6e 73 20 73 65 70 |nt maint|ains sep|
|00002e80| 61 72 61 74 65 20 73 74 | 61 74 75 73 20 69 6e 66 |arate st|atus inf|
|00002e90| 6f 72 6d 61 74 69 6f 6e | 20 66 6f 72 20 65 61 63 |ormation| for eac|
|00002ea0| 68 20 6f 70 65 6e 20 63 | 6f 6e 6e 65 63 74 69 6f |h open c|onnectio|
|00002eb0| 6e 2e 0d 41 62 6f 75 74 | 20 43 6f 6d 70 6f 6e 65 |n..About| Compone|
|00002ec0| 6e 74 73 0d 43 6f 6d 70 | 6f 6e 65 6e 74 73 20 61 |nts.Comp|onents a|
|00002ed0| 72 65 20 73 6f 66 74 77 | 61 72 65 20 6f 62 6a 65 |re softw|are obje|
|00002ee0| 63 74 73 20 74 68 61 74 | 20 70 72 6f 76 69 64 65 |cts that| provide|
|00002ef0| 20 61 20 64 65 66 69 6e | 65 64 20 73 65 74 20 6f | a defin|ed set o|
|00002f00| 66 20 73 65 72 76 69 63 | 65 73 20 74 6f 20 63 6c |f servic|es to cl|
|00002f10| 69 65 6e 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ient app|lication|
|00002f20| 73 2e 20 41 6c 6c 20 63 | 6f 6d 70 6f 6e 65 6e 74 |s. All c|omponent|
|00002f30| 73 20 61 72 65 20 63 6c | 61 73 73 69 66 69 65 64 |s are cl|assified|
|00002f40| 20 62 79 20 74 68 65 20 | 73 65 72 76 69 63 65 73 | by the |services|
|00002f50| 20 74 68 65 79 20 70 72 | 6f 76 69 64 65 2e 20 54 | they pr|ovide. T|
|00002f60| 79 70 65 73 20 6f 66 20 | 63 6f 6d 70 6f 6e 65 6e |ypes of |componen|
|00002f70| 74 73 20 69 6e 63 6c 75 | 64 65 20 69 6d 61 67 65 |ts inclu|de image|
|00002f80| 20 63 6f 6d 70 72 65 73 | 73 6f 72 73 2c 20 69 6d | compres|sors, im|
|00002f90| 61 67 65 20 64 65 63 6f | 6d 70 72 65 73 73 6f 72 |age deco|mpressor|
|00002fa0| 73 2c 20 76 69 64 65 6f | 20 64 69 67 69 74 69 7a |s, video| digitiz|
|00002fb0| 65 72 73 2c 20 74 69 6d | 69 6e 67 20 73 6f 75 72 |ers, tim|ing sour|
|00002fc0| 63 65 73 2c 20 6d 6f 76 | 69 65 20 63 6f 6e 74 72 |ces, mov|ie contr|
|00002fd0| 6f 6c 6c 65 72 73 2c 20 | 61 6e 64 20 73 65 71 75 |ollers, |and sequ|
|00002fe0| 65 6e 63 65 20 63 61 70 | 74 75 72 65 72 73 2e 20 |ence cap|turers. |
|00002ff0| 59 6f 75 20 63 61 6e 20 | 61 64 64 20 61 20 6e 65 |You can |add a ne|
|00003000| 77 20 63 6f 6d 70 6f 6e | 65 6e 74 20 74 79 70 65 |w compon|ent type|
|00003010| 20 61 74 20 61 6e 79 20 | 74 69 6d 65 d1 62 65 20 | at any |time.be |
|00003020| 73 75 72 65 20 74 6f 20 | 72 65 67 69 73 74 65 72 |sure to |register|
|00003030| 20 79 6f 75 72 20 63 6f | 6d 70 6f 6e 65 6e 74 20 | your co|mponent |
|00003040| 74 79 70 65 20 77 69 74 | 68 20 4d 61 63 69 6e 74 |type wit|h Macint|
|00003050| 6f 73 68 20 44 65 76 65 | 6c 6f 70 65 72 20 54 65 |osh Deve|loper Te|
|00003060| 63 68 6e 69 63 61 6c 20 | 53 75 70 70 6f 72 74 2e |chnical |Support.|
|00003070| 0d 54 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d |.The Com|ponent M|
|00003080| 61 6e 61 67 65 72 20 63 | 6c 61 73 73 69 66 69 65 |anager c|lassifie|
|00003090| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 62 79 20 |s compon|ents by |
|000030a0| 74 68 72 65 65 20 6d 61 | 69 6e 20 63 72 69 74 65 |three ma|in crite|
|000030b0| 72 69 61 3a 20 74 68 65 | 20 74 79 70 65 20 6f 66 |ria: the| type of|
|000030c0| 20 73 65 72 76 69 63 65 | 20 70 72 6f 76 69 64 65 | service| provide|
|000030d0| 64 2c 20 74 68 65 20 6c | 65 76 65 6c 20 6f 66 20 |d, the l|evel of |
|000030e0| 73 65 72 76 69 63 65 20 | 70 72 6f 76 69 64 65 64 |service |provided|
|000030f0| 2c 20 61 6e 64 20 74 68 | 65 20 63 6f 6d 70 6f 6e |, and th|e compon|
|00003100| 65 6e 74 20 6d 61 6e 75 | 66 61 63 74 75 72 65 72 |ent manu|facturer|
|00003110| 2e 20 54 68 65 20 43 6f | 6d 70 6f 6e 65 6e 74 20 |. The Co|mponent |
|00003120| 4d 61 6e 61 67 65 72 20 | 75 73 65 73 20 61 20 63 |Manager |uses a c|
|00003130| 6f 6d 70 6f 6e 65 6e 74 | 20 74 79 70 65 20 76 61 |omponent| type va|
|00003140| 6c 75 65 20 74 6f 20 69 | 64 65 6e 74 69 66 79 20 |lue to i|dentify |
|00003150| 74 68 65 20 74 79 70 65 | 20 6f 66 20 73 65 72 76 |the type| of serv|
|00003160| 69 63 65 20 70 72 6f 76 | 69 64 65 64 20 62 79 20 |ice prov|ided by |
|00003170| 61 20 63 6f 6d 70 6f 6e | 65 6e 74 2e 20 41 73 20 |a compon|ent. As |
|00003180| 77 69 74 68 20 72 65 73 | 6f 75 72 63 65 20 74 79 |with res|ource ty|
|00003190| 70 65 73 2c 20 74 68 65 | 20 63 6f 6d 70 6f 6e 65 |pes, the| compone|
|000031a0| 6e 74 20 74 79 70 65 20 | 76 61 6c 75 65 20 69 73 |nt type |value is|
|000031b0| 20 61 20 73 65 71 75 65 | 6e 63 65 20 6f 66 20 66 | a seque|nce of f|
|000031c0| 6f 75 72 20 63 68 61 72 | 61 63 74 65 72 73 2e 20 |our char|acters. |
|000031d0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 61 6c 6c |For exam|ple, all|
|000031e0| 20 69 6d 61 67 65 20 63 | 6f 6d 70 72 65 73 73 6f | image c|ompresso|
|000031f0| 72 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 68 61 76 |r compon|ents hav|
|00003200| 65 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 74 79 |e a comp|onent ty|
|00003210| 70 65 20 76 61 6c 75 65 | 20 6f 66 20 27 69 6d 63 |pe value| of 'imc|
|00003220| 6f 27 2e 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 74 79 |o'. Comp|onent ty|
|00003230| 70 65 73 20 63 6f 6e 73 | 69 73 74 69 6e 67 20 6f |pes cons|isting o|
|00003240| 66 20 6f 6e 6c 79 20 6c | 6f 77 65 72 63 61 73 65 |f only l|owercase|
|00003250| 20 63 68 61 72 61 63 74 | 65 72 73 20 61 72 65 20 | charact|ers are |
|00003260| 72 65 73 65 72 76 65 64 | 20 62 79 20 41 70 70 6c |reserved| by Appl|
|00003270| 65 2e 20 4f 74 68 65 72 | 20 63 6f 6d 62 69 6e 61 |e. Other| combina|
|00003280| 74 69 6f 6e 73 20 61 72 | 65 20 61 76 61 69 6c 61 |tions ar|e availa|
|00003290| 62 6c 65 20 66 6f 72 20 | 64 65 76 65 6c 6f 70 65 |ble for |develope|
|000032a0| 72 73 2c 20 62 75 74 20 | 6d 75 73 74 20 62 65 20 |rs, but |must be |
|000032b0| 72 65 67 69 73 74 65 72 | 65 64 20 77 69 74 68 20 |register|ed with |
|000032c0| 4d 61 63 69 6e 74 6f 73 | 68 20 44 65 76 65 6c 6f |Macintos|h Develo|
|000032d0| 70 65 72 20 54 65 63 68 | 6e 69 63 61 6c 20 53 75 |per Tech|nical Su|
|000032e0| 70 70 6f 72 74 2e 0d 41 | 6c 6c 20 63 6f 6d 70 6f |pport..A|ll compo|
|000032f0| 6e 65 6e 74 73 20 6f 66 | 20 74 68 65 20 73 61 6d |nents of| the sam|
|00003300| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 20 74 79 70 65 |e compon|ent type|
|00003310| 20 70 72 6f 76 69 64 65 | 20 74 68 65 20 73 61 6d | provide| the sam|
|00003320| 65 20 74 79 70 65 20 6f | 66 20 73 65 72 76 69 63 |e type o|f servic|
|00003330| 65 73 20 61 6e 64 20 73 | 75 70 70 6f 72 74 20 61 |es and s|upport a|
|00003340| 20 63 6f 6d 6d 6f 6e 20 | 61 70 70 6c 69 63 61 74 | common |applicat|
|00003350| 69 6f 6e 20 69 6e 74 65 | 72 66 61 63 65 2e 0d 54 |ion inte|rface..T|
|00003360| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00003370| 61 67 65 72 20 61 6c 6c | 6f 77 73 20 63 6f 6d 70 |ager all|ows comp|
|00003380| 6f 6e 65 6e 74 73 20 74 | 6f 20 69 64 65 6e 74 69 |onents t|o identi|
|00003390| 66 79 20 76 61 72 69 61 | 74 69 6f 6e 73 20 6f 6e |fy varia|tions on|
|000033a0| 20 74 68 65 20 62 61 73 | 69 63 20 69 6e 74 65 72 | the bas|ic inter|
|000033b0| 66 61 63 65 20 74 68 65 | 79 20 6d 75 73 74 20 73 |face the|y must s|
|000033c0| 75 70 70 6f 72 74 20 62 | 79 20 73 70 65 63 69 66 |upport b|y specif|
|000033d0| 79 69 6e 67 20 61 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ying a c|omponent|
|000033e0| 20 73 75 62 74 79 70 65 | 20 76 61 6c 75 65 2e 20 | subtype| value. |
|000033f0| 41 73 20 77 69 74 68 20 | 63 6f 6d 70 6f 6e 65 6e |As with |componen|
|00003400| 74 20 74 79 70 65 73 2c | 20 74 68 65 20 63 6f 6d |t types,| the com|
|00003410| 70 6f 6e 65 6e 74 20 73 | 75 62 74 79 70 65 20 76 |ponent s|ubtype v|
|00003420| 61 6c 75 65 20 69 73 20 | 61 20 73 65 71 75 65 6e |alue is |a sequen|
|00003430| 63 65 20 6f 66 20 66 6f | 75 72 20 63 68 61 72 61 |ce of fo|ur chara|
|00003440| 63 74 65 72 73 2e 20 54 | 68 65 20 76 61 6c 75 65 |cters. T|he value|
|00003450| 20 6f 66 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e | of the |componen|
|00003460| 74 20 73 75 62 74 79 70 | 65 20 69 73 20 6d 65 61 |t subtyp|e is mea|
|00003470| 6e 69 6e 67 66 75 6c 20 | 6f 6e 6c 79 20 69 6e 20 |ningful |only in |
|00003480| 74 68 65 20 63 6f 6e 74 | 65 78 74 20 6f 66 20 61 |the cont|ext of a|
|00003490| 20 67 69 76 65 6e 20 63 | 6f 6d 70 6f 6e 65 6e 74 | given c|omponent|
|000034a0| 20 74 79 70 65 2e 20 46 | 6f 72 20 65 78 61 6d 70 | type. F|or examp|
|000034b0| 6c 65 2c 20 69 6d 61 67 | 65 20 63 6f 6d 70 72 65 |le, imag|e compre|
|000034c0| 73 73 6f 72 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |ssor com|ponents |
|000034d0| 75 73 65 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |use the |componen|
|000034e0| 74 20 73 75 62 74 79 70 | 65 20 76 61 6c 75 65 20 |t subtyp|e value |
|000034f0| 74 6f 20 73 70 65 63 69 | 66 79 20 74 68 65 20 63 |to speci|fy the c|
|00003500| 6f 6d 70 72 65 73 73 69 | 6f 6e 20 61 6c 67 6f 72 |ompressi|on algor|
|00003510| 69 74 68 6d 20 73 75 70 | 70 6f 72 74 65 64 20 62 |ithm sup|ported b|
|00003520| 79 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 2e |y the co|mponent.|
|00003530| 0d 41 6c 6c 20 63 6f 6d | 70 6f 6e 65 6e 74 73 20 |.All com|ponents |
|00003540| 6f 66 20 61 20 67 69 76 | 65 6e 20 74 79 70 65 d0 |of a giv|en type.|
|00003550| 73 75 62 74 79 70 65 20 | 63 6f 6d 62 69 6e 61 74 |subtype |combinat|
|00003560| 69 6f 6e 20 6d 75 73 74 | 20 73 75 70 70 6f 72 74 |ion must| support|
|00003570| 20 61 20 63 6f 6d 6d 6f | 6e 20 61 70 70 6c 69 63 | a commo|n applic|
|00003580| 61 74 69 6f 6e 20 69 6e | 74 65 72 66 61 63 65 2e |ation in|terface.|
|00003590| 20 48 6f 77 65 76 65 72 | 2c 20 63 6f 6d 70 6f 6e | However|, compon|
|000035a0| 65 6e 74 73 20 74 68 61 | 74 20 73 68 61 72 65 20 |ents tha|t share |
|000035b0| 61 20 74 79 70 65 d0 73 | 75 62 74 79 70 65 20 73 |a type.s|ubtype s|
|000035c0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 6d 61 79 |pecifica|tion may|
|000035d0| 20 73 75 70 70 6f 72 74 | 20 61 70 70 6c 69 63 61 | support| applica|
|000035e0| 74 69 6f 6e 20 72 6f 75 | 74 69 6e 65 73 20 74 68 |tion rou|tines th|
|000035f0| 61 74 20 61 72 65 20 6e | 6f 74 20 70 61 72 74 20 |at are n|ot part |
|00003600| 6f 66 20 74 68 65 20 62 | 61 73 69 63 20 69 6e 74 |of the b|asic int|
|00003610| 65 72 66 61 63 65 20 64 | 65 66 69 6e 65 64 20 66 |erface d|efined f|
|00003620| 6f 72 20 74 68 65 69 72 | 20 74 79 70 65 2e 20 49 |or their| type. I|
|00003630| 6e 20 74 68 69 73 20 6d | 61 6e 6e 65 72 2c 20 63 |n this m|anner, c|
|00003640| 6f 6d 70 6f 6e 65 6e 74 | 73 20 63 61 6e 20 70 72 |omponent|s can pr|
|00003650| 6f 76 69 64 65 20 65 6e | 68 61 6e 63 65 64 20 73 |ovide en|hanced s|
|00003660| 65 72 76 69 63 65 73 20 | 74 6f 20 63 6c 69 65 6e |ervices |to clien|
|00003670| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 77 |t applic|ations w|
|00003680| 68 69 6c 65 20 73 74 69 | 6c 6c 20 73 75 70 70 6f |hile sti|ll suppo|
|00003690| 72 74 69 6e 67 20 74 68 | 65 20 62 61 73 69 63 20 |rting th|e basic |
|000036a0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 6e 74 65 |applicat|ion inte|
|000036b0| 72 66 61 63 65 2e 0d 46 | 69 6e 61 6c 6c 79 2c 20 |rface..F|inally, |
|000036c0| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|000036d0| 6e 61 67 65 72 20 61 6c | 6c 6f 77 73 20 63 6f 6d |nager al|lows com|
|000036e0| 70 6f 6e 65 6e 74 73 20 | 74 6f 20 68 61 76 65 20 |ponents |to have |
|000036f0| 61 20 6d 61 6e 75 66 61 | 63 74 75 72 65 72 20 63 |a manufa|cturer c|
|00003700| 6f 64 65 20 74 68 61 74 | 20 69 64 65 6e 74 69 66 |ode that| identif|
|00003710| 69 65 73 20 74 68 65 20 | 6d 61 6e 75 66 61 63 74 |ies the |manufact|
|00003720| 75 72 65 72 20 6f 66 20 | 74 68 65 20 63 6f 6d 70 |urer of |the comp|
|00003730| 6f 6e 65 6e 74 2e 20 41 | 73 20 77 69 74 68 20 63 |onent. A|s with c|
|00003740| 6f 6d 70 6f 6e 65 6e 74 | 20 74 79 70 65 73 20 61 |omponent| types a|
|00003750| 6e 64 20 73 75 62 74 79 | 70 65 73 2c 20 74 68 65 |nd subty|pes, the|
|00003760| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 6d 61 6e 75 66 | compone|nt manuf|
|00003770| 61 63 74 75 72 65 72 20 | 63 6f 64 65 20 69 73 20 |acturer |code is |
|00003780| 61 20 73 65 71 75 65 6e | 63 65 20 6f 66 20 66 6f |a sequen|ce of fo|
|00003790| 75 72 20 63 68 61 72 61 | 63 74 65 72 73 2e 20 44 |ur chara|cters. D|
|000037a0| 65 76 65 6c 6f 70 65 72 | 73 20 6f 66 20 63 6f 6d |eveloper|s of com|
|000037b0| 70 6f 6e 65 6e 74 73 20 | 72 65 63 65 69 76 65 20 |ponents |receive |
|000037c0| 74 68 65 69 72 20 6d 61 | 6e 75 66 61 63 74 75 72 |their ma|nufactur|
|000037d0| 65 72 20 63 6f 64 65 2c | 20 77 68 69 63 68 20 63 |er code,| which c|
|000037e0| 61 6e 20 62 65 20 74 68 | 65 20 73 61 6d 65 20 61 |an be th|e same a|
|000037f0| 73 20 74 68 65 69 72 20 | 61 70 70 6c 69 63 61 74 |s their |applicat|
|00003800| 69 6f 6e 20 73 69 67 6e | 61 74 75 72 65 2c 20 66 |ion sign|ature, f|
|00003810| 72 6f 6d 20 4d 61 63 69 | 6e 74 6f 73 68 20 44 65 |rom Maci|ntosh De|
|00003820| 76 65 6c 6f 70 65 72 20 | 54 65 63 68 6e 69 63 61 |veloper |Technica|
|00003830| 6c 20 53 75 70 70 6f 72 | 74 2e 20 54 68 65 20 6d |l Suppor|t. The m|
|00003840| 61 6e 75 66 61 63 74 75 | 72 65 72 20 63 6f 64 65 |anufactu|rer code|
|00003850| 20 61 6c 6c 6f 77 73 20 | 61 70 70 6c 69 63 61 74 | allows |applicat|
|00003860| 69 6f 6e 73 20 74 6f 20 | 66 75 72 74 68 65 72 20 |ions to |further |
|00003870| 64 69 73 74 69 6e 67 75 | 69 73 68 20 62 65 74 77 |distingu|ish betw|
|00003880| 65 65 6e 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 2c 20 |een comp|onents, |
|00003890| 61 6e 64 20 74 6f 20 73 | 70 65 63 69 66 79 20 61 |and to s|pecify a|
|000038a0| 64 64 69 74 69 6f 6e 61 | 6c 20 66 75 6e 63 74 69 |dditiona|l functi|
|000038b0| 6f 6e 61 6c 69 74 79 20 | 66 6f 72 20 61 20 67 69 |onality |for a gi|
|000038c0| 76 65 6e 20 63 6f 6d 70 | 6f 6e 65 6e 74 2e 0d 55 |ven comp|onent..U|
|000038d0| 73 69 6e 67 20 74 68 65 | 20 43 6f 6d 70 6f 6e 65 |sing the| Compone|
|000038e0| 6e 74 20 4d 61 6e 61 67 | 65 72 0d 54 68 69 73 20 |nt Manag|er.This |
|000038f0| 73 65 63 74 69 6f 6e 20 | 64 65 73 63 72 69 62 65 |section |describe|
|00003900| 73 20 68 6f 77 20 74 6f | 20 75 73 65 20 74 68 65 |s how to| use the|
|00003910| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00003920| 65 72 20 74 6f 20 67 61 | 69 6e 20 61 63 63 65 73 |er to ga|in acces|
|00003930| 73 20 74 6f 20 63 6f 6d | 70 6f 6e 65 6e 74 73 2c |s to com|ponents,|
|00003940| 20 61 6e 64 20 68 61 73 | 20 62 65 65 6e 20 64 69 | and has| been di|
|00003950| 76 69 64 65 64 20 69 6e | 74 6f 20 74 68 65 20 66 |vided in|to the f|
|00003960| 6f 6c 6c 6f 77 69 6e 67 | 20 74 6f 70 69 63 73 3a |ollowing| topics:|
|00003970| 0d 6e 09 d2 47 65 74 74 | 69 6e 67 20 49 6e 66 6f |.n..Gett|ing Info|
|00003980| 72 6d 61 74 69 6f 6e 20 | 41 62 6f 75 74 20 74 68 |rmation |About th|
|00003990| 65 20 43 6f 6d 70 6f 6e | 65 6e 74 20 4d 61 6e 61 |e Compon|ent Mana|
|000039a0| 67 65 72 d3 20 64 65 73 | 63 72 69 62 65 73 20 68 |ger. des|cribes h|
|000039b0| 6f 77 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 74 |ow you c|an use t|
|000039c0| 68 65 20 47 65 73 74 61 | 6c 74 20 4d 61 6e 61 67 |he Gesta|lt Manag|
|000039d0| 65 72 20 74 6f 20 72 65 | 74 72 69 65 76 65 20 69 |er to re|trieve i|
|000039e0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|000039f0| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|00003a00| 61 6e 61 67 65 72 0d 6e | 09 d2 46 69 6e 64 69 6e |anager.n|..Findin|
|00003a10| 67 20 61 6e 64 20 55 73 | 69 6e 67 20 43 6f 6d 70 |g and Us|ing Comp|
|00003a20| 6f 6e 65 6e 74 73 d3 20 | 64 65 73 63 72 69 62 65 |onents. |describe|
|00003a30| 73 20 68 6f 77 20 79 6f | 75 20 6c 6f 63 61 74 65 |s how yo|u locate|
|00003a40| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 61 6e 64 20 | compone|nts and |
|00003a50| 74 61 6b 65 20 61 64 76 | 61 6e 74 61 67 65 20 6f |take adv|antage o|
|00003a60| 66 20 74 68 65 69 72 20 | 73 65 72 76 69 63 65 73 |f their |services|
|00003a70| 0d 54 68 69 73 20 73 65 | 63 74 69 6f 6e 20 70 72 |.This se|ction pr|
|00003a80| 65 73 65 6e 74 73 20 73 | 65 76 65 72 61 6c 20 65 |esents s|everal e|
|00003a90| 78 61 6d 70 6c 65 73 20 | 64 65 6d 6f 6e 73 74 72 |xamples |demonstr|
|00003aa0| 61 74 69 6e 67 20 68 6f | 77 20 74 6f 20 75 73 65 |ating ho|w to use|
|00003ab0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 61 6e 64 20 | compone|nts and |
|00003ac0| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00003ad0| 6e 61 67 65 72 2e 20 41 | 6c 6c 20 6f 66 20 74 68 |nager. A|ll of th|
|00003ae0| 65 73 65 20 65 78 61 6d | 70 6c 65 73 20 75 73 65 |ese exam|ples use|
|00003af0| 20 74 68 65 20 73 65 72 | 76 69 63 65 73 20 6f 66 | the ser|vices of|
|00003b00| 20 61 20 d2 64 72 61 77 | 65 72 20 63 6f 6d 70 6f | a .draw|er compo|
|00003b10| 6e 65 6e 74 d3 d1 61 20 | 73 69 6d 70 6c 65 20 63 |nent..a |simple c|
|00003b20| 6f 6d 70 6f 6e 65 6e 74 | 20 74 68 61 74 20 64 72 |omponent| that dr|
|00003b30| 61 77 73 20 61 6e 20 6f | 62 6a 65 63 74 20 6f 66 |aws an o|bject of|
|00003b40| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 73 68 | a parti|cular sh|
|00003b50| 61 70 65 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |ape on t|he scree|
|00003b60| 6e 2e 20 4c 61 74 65 72 | 20 69 6e 20 74 68 69 73 |n. Later| in this|
|00003b70| 20 63 68 61 70 74 65 72 | 2c 20 74 68 65 20 73 6f | chapter|, the so|
|00003b80| 75 72 63 65 20 63 6f 64 | 65 20 66 6f 72 20 61 20 |urce cod|e for a |
|00003b90| 64 72 61 77 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |drawer c|omponent|
|00003ba0| 20 69 73 20 70 72 6f 76 | 69 64 65 64 20 74 6f 20 | is prov|ided to |
|00003bb0| 73 68 6f 77 20 74 68 65 | 20 73 74 72 75 63 74 75 |show the| structu|
|00003bc0| 72 65 20 6f 66 20 61 20 | 63 6f 6d 70 6f 6e 65 6e |re of a |componen|
|00003bd0| 74 20 28 73 65 65 20 d2 | 43 72 65 61 74 69 6e 67 |t (see .|Creating|
|00003be0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 d3 29 2e 0d 44 | Compone|nts.)..D|
|00003bf0| 72 61 77 65 72 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |rawer co|mponents|
|00003c00| 20 68 61 76 65 20 61 20 | 63 6f 6d 70 6f 6e 65 6e | have a |componen|
|00003c10| 74 20 74 79 70 65 20 76 | 61 6c 75 65 20 6f 66 20 |t type v|alue of |
|00003c20| 27 64 72 61 77 27 2e 20 | 54 68 65 20 63 6f 6d 70 |'draw'. |The comp|
|00003c30| 6f 6e 65 6e 74 20 73 75 | 62 74 79 70 65 20 76 61 |onent su|btype va|
|00003c40| 6c 75 65 20 69 6e 64 69 | 63 61 74 65 73 20 74 68 |lue indi|cates th|
|00003c50| 65 20 74 79 70 65 20 6f | 66 20 6f 62 6a 65 63 74 |e type o|f object|
|00003c60| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 64 | the com|ponent d|
|00003c70| 72 61 77 73 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |raws. Fo|r exampl|
|00003c80| 65 2c 20 61 20 64 72 61 | 77 65 72 20 63 6f 6d 70 |e, a dra|wer comp|
|00003c90| 6f 6e 65 6e 74 20 74 68 | 61 74 20 64 72 61 77 73 |onent th|at draws|
|00003ca0| 20 61 6e 20 6f 76 61 6c | 20 68 61 73 20 61 20 63 | an oval| has a c|
|00003cb0| 6f 6d 70 6f 6e 65 6e 74 | 20 73 75 62 74 79 70 65 |omponent| subtype|
|00003cc0| 20 76 61 6c 75 65 20 6f | 66 20 27 6f 76 61 6c 27 | value o|f 'oval'|
|00003cd0| 2e 0d 4e 6f 74 65 0d 49 | 66 20 79 6f 75 20 61 72 |..Note.I|f you ar|
|00003ce0| 65 20 64 65 76 65 6c 6f | 70 69 6e 67 20 61 20 63 |e develo|ping a c|
|00003cf0| 6f 6d 70 6f 6e 65 6e 74 | 2c 20 79 6f 75 20 73 68 |omponent|, you sh|
|00003d00| 6f 75 6c 64 20 72 65 61 | 64 20 d2 43 72 65 61 74 |ould rea|d .Creat|
|00003d10| 69 6e 67 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 2c d3 |ing Comp|onents,.|
|00003d20| 20 6c 61 74 65 72 20 69 | 6e 20 74 68 69 73 20 63 | later i|n this c|
|00003d30| 68 61 70 74 65 72 2c 20 | 66 6f 72 20 61 20 74 68 |hapter, |for a th|
|00003d40| 6f 72 6f 75 67 68 20 64 | 69 73 63 75 73 73 69 6f |orough d|iscussio|
|00003d50| 6e 20 6f 66 20 68 6f 77 | 20 74 6f 20 63 72 65 61 |n of how| to crea|
|00003d60| 74 65 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 20 61 |te a com|ponent a|
|00003d70| 6e 64 20 68 6f 77 20 79 | 6f 75 72 20 63 6f 6d 70 |nd how y|our comp|
|00003d80| 6f 6e 65 6e 74 20 72 65 | 63 65 69 76 65 73 20 72 |onent re|ceives r|
|00003d90| 65 71 75 65 73 74 73 20 | 66 72 6f 6d 20 74 68 65 |equests |from the|
|00003da0| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00003db0| 65 72 2e 20 49 6e 20 74 | 68 61 74 20 73 65 63 74 |er. In t|hat sect|
|00003dc0| 69 6f 6e 20 79 6f 75 20 | 77 69 6c 6c 20 61 6c 73 |ion you |will als|
|00003dd0| 6f 20 6c 65 61 72 6e 20 | 61 62 6f 75 74 20 43 6f |o learn |about Co|
|00003de0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 20 |mponent |Manager |
|00003df0| 72 6f 75 74 69 6e 65 73 | 20 74 68 61 74 20 68 65 |routines| that he|
|00003e00| 6c 70 20 79 6f 75 20 6d | 61 6b 65 20 79 6f 75 72 |lp you m|ake your|
|00003e10| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 61 76 61 69 | compone|nts avai|
|00003e20| 6c 61 62 6c 65 20 74 6f | 20 61 70 70 6c 69 63 61 |lable to| applica|
|00003e30| 74 69 6f 6e 73 2e 5c 78 | 31 33 20 3c 38 62 61 74 |tions.\x|13 <8bat|
|00003e40| 5c 3e 75 0d 47 65 74 74 | 69 6e 67 20 49 6e 66 6f |\>u.Gett|ing Info|
|00003e50| 72 6d 61 74 69 6f 6e 20 | 41 62 6f 75 74 20 74 68 |rmation |About th|
|00003e60| 65 20 43 6f 6d 70 6f 6e | 65 6e 74 20 4d 61 6e 61 |e Compon|ent Mana|
|00003e70| 67 65 72 0d 55 73 65 20 | 74 68 65 20 47 65 73 74 |ger.Use |the Gest|
|00003e80| 61 6c 74 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 61 |alt envi|ronmenta|
|00003e90| 6c 20 73 65 6c 65 63 74 | 6f 72 20 67 65 73 74 61 |l select|or gesta|
|00003ea0| 6c 74 43 6f 6d 70 6f 6e | 65 6e 74 4d 67 72 20 74 |ltCompon|entMgr t|
|00003eb0| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 65 74 |o determ|ine whet|
|00003ec0| 68 65 72 20 74 68 65 20 | 43 6f 6d 70 6f 6e 65 6e |her the |Componen|
|00003ed0| 74 20 4d 61 6e 61 67 65 | 72 20 69 73 20 61 76 61 |t Manage|r is ava|
|00003ee0| 69 6c 61 62 6c 65 2e 20 | 47 65 73 74 61 6c 74 20 |ilable. |Gestalt |
|00003ef0| 72 65 74 75 72 6e 73 20 | 61 20 33 32 2d 62 69 74 |returns |a 32-bit|
|00003f00| 20 76 61 6c 75 65 20 69 | 6e 64 69 63 61 74 69 6e | value i|ndicatin|
|00003f10| 67 20 74 68 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |g the ve|rsion of|
|00003f20| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|00003f30| 61 6e 61 67 65 72 20 74 | 68 61 74 20 69 73 20 69 |anager t|hat is i|
|00003f40| 6e 73 74 61 6c 6c 65 64 | 2e 0d 46 69 6e 64 69 6e |nstalled|..Findin|
|00003f50| 67 20 61 6e 64 20 55 73 | 69 6e 67 20 43 6f 6d 70 |g and Us|ing Comp|
|00003f60| 6f 6e 65 6e 74 73 0d 54 | 68 69 73 20 73 65 63 74 |onents.T|his sect|
|00003f70| 69 6f 6e 20 69 6e 74 72 | 6f 64 75 63 65 73 20 74 |ion intr|oduces t|
|00003f80| 68 65 20 43 6f 6d 70 6f | 6e 65 6e 74 20 4d 61 6e |he Compo|nent Man|
|00003f90| 61 67 65 72 20 72 6f 75 | 74 69 6e 65 73 20 79 6f |ager rou|tines yo|
|00003fa0| 75 20 63 61 6e 20 75 73 | 65 20 74 6f 20 67 61 69 |u can us|e to gai|
|00003fb0| 6e 20 61 63 63 65 73 73 | 20 74 6f 20 74 68 65 20 |n access| to the |
|00003fc0| 73 65 72 76 69 63 65 73 | 20 69 74 20 70 72 6f 76 |services| it prov|
|00003fd0| 69 64 65 73 2e 20 41 6c | 6c 20 6f 66 20 74 68 65 |ides. Al|l of the|
|00003fe0| 73 65 20 72 6f 75 74 69 | 6e 65 73 20 61 72 65 20 |se routi|nes are |
|00003ff0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 6d 6f 72 |describe|d in mor|
|00004000| 65 20 64 65 74 61 69 6c | 20 6c 61 74 65 72 20 69 |e detail| later i|
|00004010| 6e 20 74 68 69 73 20 63 | 68 61 70 74 65 72 2c 20 |n this c|hapter, |
|00004020| 69 6e 20 d2 52 6f 75 74 | 69 6e 65 73 20 66 6f 72 |in .Rout|ines for|
|00004030| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 73 2e d3 0d | Applica|tions...|
|00004040| 59 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |Your app|lication|
|00004050| 20 6d 75 73 74 20 75 73 | 65 20 74 68 65 20 43 6f | must us|e the Co|
|00004060| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 20 |mponent |Manager |
|00004070| 74 6f 20 67 61 69 6e 20 | 61 63 63 65 73 73 20 74 |to gain |access t|
|00004080| 6f 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 2e 20 54 |o a comp|onent. T|
|00004090| 68 65 20 66 69 72 73 74 | 20 73 74 65 70 20 69 73 |he first| step is|
|000040a0| 20 74 6f 20 6c 6f 63 61 | 74 65 20 61 6e 20 61 70 | to loca|te an ap|
|000040b0| 70 72 6f 70 72 69 61 74 | 65 20 63 6f 6d 70 6f 6e |propriat|e compon|
|000040c0| 65 6e 74 2e 20 59 6f 75 | 20 63 61 6e 20 6c 6f 63 |ent. You| can loc|
|000040d0| 61 74 65 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |ate the |componen|
|000040e0| 74 20 79 6f 75 72 73 65 | 6c 66 2c 20 6f 72 20 79 |t yourse|lf, or y|
|000040f0| 6f 75 20 63 61 6e 20 61 | 6c 6c 6f 77 20 74 68 65 |ou can a|llow the|
|00004100| 20 43 6f 6d 70 6f 6e 65 | 6e 74 20 4d 61 6e 61 67 | Compone|nt Manag|
|00004110| 65 72 20 74 6f 20 6c 6f | 63 61 74 65 20 61 20 73 |er to lo|cate a s|
|00004120| 75 69 74 61 62 6c 65 20 | 63 6f 6d 70 6f 6e 65 6e |uitable |componen|
|00004130| 74 20 66 6f 72 20 79 6f | 75 2e 20 59 6f 75 72 20 |t for yo|u. Your |
|00004140| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 68 65 6e |applicat|ion then|
|00004150| 20 6f 70 65 6e 73 20 61 | 20 63 6f 6e 6e 65 63 74 | opens a| connect|
|00004160| 69 6f 6e 20 74 6f 20 74 | 68 61 74 20 63 6f 6d 70 |ion to t|hat comp|
|00004170| 6f 6e 65 6e 74 2e 20 4f | 6e 63 65 20 79 6f 75 20 |onent. O|nce you |
|00004180| 68 61 76 65 20 6f 70 65 | 6e 65 64 20 61 20 63 6f |have ope|ned a co|
|00004190| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 61 20 63 6f |nnection| to a co|
|000041a0| 6d 70 6f 6e 65 6e 74 2c | 20 79 6f 75 20 63 61 6e |mponent,| you can|
|000041b0| 20 75 73 65 20 74 68 65 | 20 73 65 72 76 69 63 65 | use the| service|
|000041c0| 73 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |s provid|ed by th|
|000041d0| 61 74 20 63 6f 6d 70 6f | 6e 65 6e 74 2e 20 57 68 |at compo|nent. Wh|
|000041e0| 65 6e 20 79 6f 75 20 61 | 72 65 20 64 6f 6e 65 20 |en you a|re done |
|000041f0| 75 73 69 6e 67 20 74 68 | 65 20 63 6f 6d 70 6f 6e |using th|e compon|
|00004200| 65 6e 74 2c 20 79 6f 75 | 20 63 6c 6f 73 65 20 74 |ent, you| close t|
|00004210| 68 65 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 2e 20 54 |he conne|ction. T|
|00004220| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 73 65 63 |he follo|wing sec|
|00004230| 74 69 6f 6e 73 20 64 65 | 73 63 72 69 62 65 20 65 |tions de|scribe e|
|00004240| 61 63 68 20 6f 66 20 74 | 68 65 73 65 20 73 74 65 |ach of t|hese ste|
|00004250| 70 73 20 69 6e 20 6d 6f | 72 65 20 64 65 74 61 69 |ps in mo|re detai|
|00004260| 6c 2e 0d 4f 70 65 6e 69 | 6e 67 20 61 20 43 6f 6e |l..Openi|ng a Con|
|00004270| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 61 20 43 6f 6d |nection |to a Com|
|00004280| 70 6f 6e 65 6e 74 0d 49 | 66 20 79 6f 75 20 61 72 |ponent.I|f you ar|
|00004290| 65 20 6e 6f 74 20 69 6e | 74 65 72 65 73 74 65 64 |e not in|terested|
|000042a0| 20 69 6e 20 75 73 69 6e | 67 20 61 20 73 70 65 63 | in usin|g a spec|
|000042b0| 69 66 69 63 20 63 6f 6d | 70 6f 6e 65 6e 74 2c 20 |ific com|ponent, |
|000042c0| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|000042d0| 6e 61 67 65 72 20 70 72 | 6f 76 69 64 65 73 20 61 |nager pr|ovides a|
|000042e0| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 61 | functio|n that a|
|000042f0| 6c 6c 6f 77 73 20 79 6f | 75 20 74 6f 20 73 70 65 |llows yo|u to spe|
|00004300| 63 69 66 79 20 6f 6e 6c | 79 20 74 68 65 20 63 6f |cify onl|y the co|
|00004310| 6d 70 6f 6e 65 6e 74 20 | 74 79 70 65 20 61 6e 64 |mponent |type and|
|00004320| 20 73 75 62 74 79 70 65 | d1 74 68 65 20 43 6f 6d | subtype|.the Com|
|00004330| 70 6f 6e 65 6e 74 20 4d | 61 6e 61 67 65 72 20 74 |ponent M|anager t|
|00004340| 68 65 6e 20 73 65 6c 65 | 63 74 73 20 61 6e 20 61 |hen sele|cts an a|
|00004350| 70 70 72 6f 70 72 69 61 | 74 65 20 63 6f 6d 70 6f |ppropria|te compo|
|00004360| 6e 65 6e 74 20 66 6f 72 | 20 79 6f 75 20 61 6e 64 |nent for| you and|
|00004370| 20 6f 70 65 6e 73 20 61 | 20 63 6f 6e 6e 65 63 74 | opens a| connect|
|00004380| 69 6f 6e 20 74 6f 20 74 | 68 61 74 20 63 6f 6d 70 |ion to t|hat comp|
|00004390| 6f 6e 65 6e 74 2e 20 54 | 68 69 73 20 69 73 20 74 |onent. T|his is t|
|000043a0| 68 65 20 65 61 73 69 65 | 73 74 20 74 65 63 68 6e |he easie|st techn|
|000043b0| 69 71 75 65 20 66 6f 72 | 20 6f 70 65 6e 69 6e 67 |ique for| opening|
|000043c0| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 20 63 6f 6e | a compo|nent con|
|000043d0| 6e 65 63 74 69 6f 6e 2e | 20 55 73 65 20 74 68 65 |nection.| Use the|
|000043e0| 20 4f 70 65 6e 44 65 66 | 61 75 6c 74 43 6f 6d 70 | OpenDef|aultComp|
|000043f0| 6f 6e 65 6e 74 20 66 75 | 6e 63 74 69 6f 6e 20 74 |onent fu|nction t|
|00004400| 6f 20 6f 70 65 6e 20 61 | 20 63 6f 6e 6e 65 63 74 |o open a| connect|
|00004410| 69 6f 6e 20 69 6e 20 74 | 68 69 73 20 6d 61 6e 6e |ion in t|his mann|
|00004420| 65 72 2e 20 54 68 65 20 | 4f 70 65 6e 44 65 66 61 |er. The |OpenDefa|
|00004430| 75 6c 74 43 6f 6d 70 6f | 6e 65 6e 74 20 66 75 6e |ultCompo|nent fun|
|00004440| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 61 20 |ction re|turns a |
|00004450| 63 6f 6d 70 6f 6e 65 6e | 74 20 69 6e 73 74 61 6e |componen|t instan|
|00004460| 63 65 20 74 68 61 74 20 | 69 64 65 6e 74 69 66 69 |ce that |identifi|
|00004470| 65 73 20 79 6f 75 72 20 | 63 6f 6e 6e 65 63 74 69 |es your |connecti|
|00004480| 6f 6e 20 74 6f 20 74 68 | 65 20 63 6f 6d 70 6f 6e |on to th|e compon|
|00004490| 65 6e 74 2e 20 59 6f 75 | 20 63 61 6e 20 74 68 65 |ent. You| can the|
|000044a0| 6e 20 75 73 65 20 74 68 | 61 74 20 63 6f 6e 6e 65 |n use th|at conne|
|000044b0| 63 74 69 6f 6e 20 74 6f | 20 65 6d 70 6c 6f 79 20 |ction to| employ |
|000044c0| 74 68 65 20 73 65 72 76 | 69 63 65 73 20 6f 66 20 |the serv|ices of |
|000044d0| 74 68 65 20 73 65 6c 65 | 63 74 65 64 20 63 6f 6d |the sele|cted com|
|000044e0| 70 6f 6e 65 6e 74 2e 0d | 54 68 65 20 66 6f 6c 6c |ponent..|The foll|
|000044f0| 6f 77 69 6e 67 20 73 61 | 6d 70 6c 65 20 63 6f 64 |owing sa|mple cod|
|00004500| 65 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 73 20 74 |e demons|trates t|
|00004510| 68 65 20 75 73 65 20 6f | 66 20 74 68 65 20 4f 70 |he use o|f the Op|
|00004520| 65 6e 44 65 66 61 75 6c | 74 43 6f 6d 70 6f 6e 65 |enDefaul|tCompone|
|00004530| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 2e 20 54 68 69 |nt funct|ion. Thi|
|00004540| 73 20 65 78 61 6d 70 6c | 65 20 6f 70 65 6e 73 20 |s exampl|e opens |
|00004550| 61 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |a connec|tion to |
|00004560| 61 20 63 6f 6d 70 6f 6e | 65 6e 74 20 6f 66 20 74 |a compon|ent of t|
|00004570| 79 70 65 20 27 64 72 61 | 77 27 20 61 6e 64 20 73 |ype 'dra|w' and s|
|00004580| 75 62 74 79 70 65 20 27 | 6f 76 61 6c 27 d1 61 20 |ubtype '|oval'.a |
|00004590| 64 72 61 77 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |drawer c|omponent|
|000045a0| 20 74 68 61 74 20 64 72 | 61 77 73 20 61 6e 20 6f | that dr|aws an o|
|000045b0| 76 61 6c 2e 0d 67 44 72 | 61 77 65 72 4c 69 73 74 |val..gDr|awerList|
|000045c0| 5b 31 5d 20 3a 3d 20 4f | 70 65 6e 44 65 66 61 75 |[1] := O|penDefau|
|000045d0| 6c 74 43 6f 6d 70 6f 6e | 65 6e 74 20 28 27 64 72 |ltCompon|ent ('dr|
|000045e0| 61 77 27 2c 20 27 6f 76 | 61 6c 27 29 3b 0d 46 69 |aw', 'ov|al');.Fi|
|000045f0| 6e 64 69 6e 67 20 61 20 | 53 70 65 63 69 66 69 63 |nding a |Specific|
|00004600| 20 43 6f 6d 70 6f 6e 65 | 6e 74 0d 49 66 20 79 6f | Compone|nt.If yo|
|00004610| 75 20 61 72 65 20 69 6e | 74 65 72 65 73 74 65 64 |u are in|terested|
|00004620| 20 69 6e 20 61 73 73 65 | 72 74 69 6e 67 20 67 72 | in asse|rting gr|
|00004630| 65 61 74 65 72 20 63 6f | 6e 74 72 6f 6c 20 6f 76 |eater co|ntrol ov|
|00004640| 65 72 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |er the s|election|
|00004650| 20 6f 66 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 2c | of a co|mponent,|
|00004660| 20 74 68 65 20 43 6f 6d | 70 6f 6e 65 6e 74 20 4d | the Com|ponent M|
|00004670| 61 6e 61 67 65 72 20 70 | 72 6f 76 69 64 65 73 20 |anager p|rovides |
|00004680| 61 20 6e 75 6d 62 65 72 | 20 6f 66 20 72 6f 75 74 |a number| of rout|
|00004690| 69 6e 65 73 20 74 68 61 | 74 20 61 6c 6c 6f 77 20 |ines tha|t allow |
|000046a0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|000046b0| 20 74 6f 20 66 69 6e 64 | 20 61 20 63 6f 6d 70 6f | to find| a compo|
|000046c0| 6e 65 6e 74 20 74 68 61 | 74 20 70 72 6f 76 69 64 |nent tha|t provid|
|000046d0| 65 73 20 61 20 73 70 65 | 63 69 66 69 65 64 20 73 |es a spe|cified s|
|000046e0| 65 72 76 69 63 65 2e 20 | 55 73 65 20 74 68 65 20 |ervice. |Use the |
|000046f0| 46 69 6e 64 4e 65 78 74 | 43 6f 6d 70 6f 6e 65 6e |FindNext|Componen|
|00004700| 74 20 66 75 6e 63 74 69 | 6f 6e 20 69 6e 20 61 20 |t functi|on in a |
|00004710| 6c 6f 6f 70 20 74 6f 20 | 72 65 74 72 69 65 76 65 |loop to |retrieve|
|00004720| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|00004730| 75 74 20 61 6c 6c 20 74 | 68 65 20 63 6f 6d 70 6f |ut all t|he compo|
|00004740| 6e 65 6e 74 73 20 74 68 | 61 74 20 61 72 65 20 72 |nents th|at are r|
|00004750| 65 67 69 73 74 65 72 65 | 64 20 6f 6e 20 61 20 67 |egistere|d on a g|
|00004760| 69 76 65 6e 20 63 6f 6d | 70 75 74 65 72 2e 20 45 |iven com|puter. E|
|00004770| 61 63 68 20 74 69 6d 65 | 20 79 6f 75 20 63 61 6c |ach time| you cal|
|00004780| 6c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |l this f|unction |
|00004790| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|000047a0| 6e 61 67 65 72 20 72 65 | 74 75 72 6e 73 20 69 6e |nager re|turns in|
|000047b0| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|000047c0| 61 20 73 69 6e 67 6c 65 | 20 63 6f 6d 70 6f 6e 65 |a single| compone|
|000047d0| 6e 74 2e 20 59 6f 75 20 | 63 61 6e 20 6f 62 74 61 |nt. You |can obta|
|000047e0| 69 6e 20 61 20 63 6f 75 | 6e 74 20 6f 66 20 61 6c |in a cou|nt of al|
|000047f0| 6c 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |l the co|mponents|
|00004800| 20 6f 6e 20 61 20 67 69 | 76 65 6e 20 63 6f 6d 70 | on a gi|ven comp|
|00004810| 75 74 65 72 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |uter by |calling |
|00004820| 74 68 65 20 43 6f 75 6e | 74 43 6f 6d 70 6f 6e 65 |the Coun|tCompone|
|00004830| 6e 74 73 20 66 75 6e 63 | 74 69 6f 6e 2e 20 42 6f |nts func|tion. Bo|
|00004840| 74 68 20 6f 66 20 74 68 | 65 73 65 20 66 75 6e 63 |th of th|ese func|
|00004850| 74 69 6f 6e 73 20 61 6c | 6c 6f 77 20 79 6f 75 20 |tions al|low you |
|00004860| 74 6f 20 73 70 65 63 69 | 66 79 20 73 65 61 72 63 |to speci|fy searc|
|00004870| 68 20 63 72 69 74 65 72 | 69 61 2c 20 69 6e 63 6c |h criter|ia, incl|
|00004880| 75 64 69 6e 67 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |uding co|mponent |
|00004890| 74 79 70 65 20 61 6e 64 | 20 73 75 62 74 79 70 65 |type and| subtype|
|000048a0| 2c 20 61 73 20 77 65 6c | 6c 20 61 73 20 6d 61 6e |, as wel|l as man|
|000048b0| 75 66 61 63 74 75 72 65 | 72 2e 20 42 79 20 75 73 |ufacture|r. By us|
|000048c0| 69 6e 67 20 74 68 65 73 | 65 20 63 72 69 74 65 72 |ing thes|e criter|
|000048d0| 69 61 20 74 6f 20 6e 61 | 72 72 6f 77 20 79 6f 75 |ia to na|rrow you|
|000048e0| 72 20 73 65 61 72 63 68 | 2c 20 79 6f 75 20 63 61 |r search|, you ca|
|000048f0| 6e 20 71 75 69 63 6b 6c | 79 20 61 6e 64 20 65 61 |n quickl|y and ea|
|00004900| 73 69 6c 79 20 66 69 6e | 64 20 61 20 63 6f 6d 70 |sily fin|d a comp|
|00004910| 6f 6e 65 6e 74 20 74 68 | 61 74 20 6d 65 65 74 73 |onent th|at meets|
|00004920| 20 79 6f 75 72 20 6e 65 | 65 64 73 2e 0d 54 68 65 | your ne|eds..The|
|00004930| 20 46 69 6e 64 4e 65 78 | 74 43 6f 6d 70 6f 6e 65 | FindNex|tCompone|
|00004940| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 74 75 |nt funct|ion retu|
|00004950| 72 6e 73 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |rns a co|mponent |
|00004960| 69 64 65 6e 74 69 66 69 | 65 72 20 74 6f 20 79 6f |identifi|er to yo|
|00004970| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |ur appli|cation. |
|00004980| 54 68 69 73 20 76 61 6c | 75 65 20 69 64 65 6e 74 |This val|ue ident|
|00004990| 69 66 69 65 73 20 61 20 | 67 69 76 65 6e 20 63 6f |ifies a |given co|
|000049a0| 6d 70 6f 6e 65 6e 74 20 | 74 6f 20 74 68 65 20 43 |mponent |to the C|
|000049b0| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|000049c0| 2e 20 59 6f 75 20 63 61 | 6e 20 75 73 65 20 74 68 |. You ca|n use th|
|000049d0| 69 73 20 69 64 65 6e 74 | 69 66 69 65 72 20 74 6f |is ident|ifier to|
|000049e0| 20 72 65 74 72 69 65 76 | 65 20 6d 6f 72 65 20 69 | retriev|e more i|
|000049f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00004a00| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 6f | the com|ponent o|
|00004a10| 72 20 74 6f 20 6f 70 65 | 6e 20 61 20 63 6f 6e 6e |r to ope|n a conn|
|00004a20| 65 63 74 69 6f 6e 20 74 | 6f 20 74 68 65 20 63 6f |ection t|o the co|
|00004a30| 6d 70 6f 6e 65 6e 74 2e | 20 54 68 65 20 47 65 74 |mponent.| The Get|
|00004a40| 43 6f 6d 70 6f 6e 65 6e | 74 49 6e 66 6f 20 66 75 |Componen|tInfo fu|
|00004a50| 6e 63 74 69 6f 6e 20 72 | 65 74 75 72 6e 73 20 69 |nction r|eturns i|
|00004a60| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00004a70| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 2c 20 69 6e | a compo|nent, in|
|00004a80| 63 6c 75 64 69 6e 67 20 | 74 68 65 20 63 6f 6d 70 |cluding |the comp|
|00004a90| 6f 6e 65 6e 74 20 6e 61 | 6d 65 2c 20 6d 61 6e 75 |onent na|me, manu|
|00004aa0| 66 61 63 74 75 72 65 72 | 2c 20 61 6e 64 20 73 6f |facturer|, and so|
|00004ab0| 20 6f 6e 2e 20 54 68 69 | 73 20 69 6e 66 6f 72 6d | on. Thi|s inform|
|00004ac0| 61 74 69 6f 6e 20 6d 61 | 79 20 62 65 20 75 73 65 |ation ma|y be use|
|00004ad0| 66 75 6c 20 74 6f 20 79 | 6f 75 72 20 61 70 70 6c |ful to y|our appl|
|00004ae0| 69 63 61 74 69 6f 6e 20 | 6f 72 20 74 6f 20 74 68 |ication |or to th|
|00004af0| 65 20 75 73 65 72 2e 20 | 4c 69 73 74 69 6e 67 20 |e user. |Listing |
|00004b00| 31 2d 31 20 73 68 6f 77 | 73 20 68 6f 77 20 74 6f |1-1 show|s how to|
|00004b10| 20 75 73 65 20 74 68 65 | 20 46 69 6e 64 4e 65 78 | use the| FindNex|
|00004b20| 74 43 6f 6d 70 6f 6e 65 | 6e 74 20 66 75 6e 63 74 |tCompone|nt funct|
|00004b30| 69 6f 6e 2e 0d 4c 69 73 | 74 69 6e 67 20 31 2d 31 |ion..Lis|ting 1-1|
|00004b40| 09 46 69 6e 64 69 6e 67 | 20 61 20 63 6f 6d 70 6f |.Finding| a compo|
|00004b50| 6e 65 6e 74 0d 09 76 54 | 68 69 6e 67 3a 09 09 09 |nent..vT|hing:...|
|00004b60| 09 43 6f 6d 70 6f 6e 65 | 6e 74 3b 0d 09 76 54 68 |.Compone|nt;..vTh|
|00004b70| 69 6e 67 44 65 73 63 3a | 09 09 09 09 43 6f 6d 70 |ingDesc:|....Comp|
|00004b80| 6f 6e 65 6e 74 44 65 73 | 63 72 69 70 74 69 6f 6e |onentDes|cription|
|00004b90| 3b 0d 09 76 54 68 69 6e | 67 53 6f 75 6c 3a 09 09 |;..vThin|gSoul:..|
|00004ba0| 09 09 56 69 64 65 6f 44 | 69 67 69 74 69 7a 65 72 |..VideoD|igitizer|
|00004bb0| 43 6f 6d 70 6f 6e 65 6e | 74 3b 0d 0d 09 7b 20 46 |Componen|t;...{ F|
|00004bc0| 69 72 73 74 20 66 69 6e | 64 20 61 20 64 69 67 69 |irst fin|d a digi|
|00004bd0| 74 69 7a 65 72 20 74 68 | 69 6e 67 20 61 6e 64 20 |tizer th|ing and |
|00004be0| 6f 70 65 6e 20 69 74 20 | 7d 09 20 20 09 0d 0d 09 |open it |}. ....|
|00004bf0| 76 54 68 69 6e 67 44 65 | 73 63 2e 63 6f 6d 70 6f |vThingDe|sc.compo|
|00004c00| 6e 65 6e 74 54 79 70 65 | 20 09 09 09 3a 3d 20 76 |nentType| ...:= v|
|00004c10| 69 64 65 6f 44 69 67 69 | 74 69 7a 65 72 43 6f 6d |ideoDigi|tizerCom|
|00004c20| 70 6f 6e 65 6e 74 54 79 | 70 65 3b 0d 09 76 54 68 |ponentTy|pe;..vTh|
|00004c30| 69 6e 67 44 65 73 63 2e | 63 6f 6d 70 6f 6e 65 6e |ingDesc.|componen|
|00004c40| 74 53 75 62 54 79 70 65 | 20 09 09 3a 3d 20 4f 53 |tSubType| ..:= OS|
|00004c50| 54 79 70 65 20 28 30 29 | 3b 0d 09 76 54 68 69 6e |Type (0)|;..vThin|
|00004c60| 67 44 65 73 63 2e 63 6f | 6d 70 6f 6e 65 6e 74 4d |gDesc.co|mponentM|
|00004c70| 61 6e 75 66 61 63 74 75 | 72 65 72 20 09 3a 3d 20 |anufactu|rer .:= |
|00004c80| 4f 53 54 79 70 65 20 28 | 30 29 3b 0d 09 76 54 68 |OSType (|0);..vTh|
|00004c90| 69 6e 67 44 65 73 63 2e | 63 6f 6d 70 6f 6e 65 6e |ingDesc.|componen|
|00004ca0| 74 46 6c 61 67 73 20 09 | 09 09 3a 3d 20 30 3b 0d |tFlags .|..:= 0;.|
|00004cb0| 09 76 54 68 69 6e 67 44 | 65 73 63 2e 63 6f 6d 70 |.vThingD|esc.comp|
|00004cc0| 6f 6e 65 6e 74 46 6c 61 | 67 73 4d 61 73 6b 20 09 |onentFla|gsMask .|
|00004cd0| 09 3a 3d 20 30 3b 0d 09 | 76 54 68 69 6e 67 20 09 |.:= 0;..|vThing .|
|00004ce0| 09 3a 3d 20 46 69 6e 64 | 4e 65 78 74 43 6f 6d 70 |.:= Find|NextComp|
|00004cf0| 6f 6e 65 6e 74 28 43 6f | 6d 70 6f 6e 65 6e 74 28 |onent(Co|mponent(|
|00004d00| 30 29 2c 76 54 68 69 6e | 67 44 65 73 63 29 3b 20 |0),vThin|gDesc); |
|00004d10| 09 20 09 09 0d 0d 09 76 | 54 68 69 6e 67 53 6f 75 |. .....v|ThingSou|
|00004d20| 6c 20 09 3a 3d 20 56 69 | 64 65 6f 44 69 67 69 74 |l .:= Vi|deoDigit|
|00004d30| 69 7a 65 72 43 6f 6d 70 | 6f 6e 65 6e 74 20 28 4f |izerComp|onent (O|
|00004d40| 70 65 6e 43 6f 6d 70 6f | 6e 65 6e 74 28 76 54 68 |penCompo|nent(vTh|
|00004d50| 69 6e 67 29 29 3b 0d 4f | 70 65 6e 69 6e 67 20 61 |ing));.O|pening a|
|00004d60| 20 43 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 61 | Connect|ion to a|
|00004d70| 20 53 70 65 63 69 66 69 | 63 20 43 6f 6d 70 6f 6e | Specifi|c Compon|
|00004d80| 65 6e 74 0d 59 6f 75 20 | 6d 75 73 74 20 6f 70 65 |ent.You |must ope|
|00004d90| 6e 20 61 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |n a conn|ection t|
|00004da0| 6f 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 62 65 |o a comp|onent be|
|00004db0| 66 6f 72 65 20 79 6f 75 | 20 63 61 6e 20 75 73 65 |fore you| can use|
|00004dc0| 20 69 74 73 20 73 65 72 | 76 69 63 65 73 2e 20 59 | its ser|vices. Y|
|00004dd0| 6f 75 20 63 61 6e 20 6f | 70 65 6e 20 61 20 63 6f |ou can o|pen a co|
|00004de0| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 61 20 73 70 |nnection| to a sp|
|00004df0| 65 63 69 66 69 63 20 63 | 6f 6d 70 6f 6e 65 6e 74 |ecific c|omponent|
|00004e00| 20 62 79 20 63 61 6c 6c | 69 6e 67 20 74 68 65 20 | by call|ing the |
|00004e10| 4f 70 65 6e 43 6f 6d 70 | 6f 6e 65 6e 74 20 66 75 |OpenComp|onent fu|
|00004e20| 6e 63 74 69 6f 6e 20 28 | 61 6c 74 65 72 6e 61 74 |nction (|alternat|
|00004e30| 69 76 65 6c 79 2c 20 79 | 6f 75 20 63 61 6e 20 75 |ively, y|ou can u|
|00004e40| 73 65 20 74 68 65 20 4f | 70 65 6e 44 65 66 61 75 |se the O|penDefau|
|00004e50| 6c 74 43 6f 6d 70 6f 6e | 65 6e 74 20 66 75 6e 63 |ltCompon|ent func|
|00004e60| 74 69 6f 6e 2c 20 61 73 | 20 64 69 73 63 75 73 73 |tion, as| discuss|
|00004e70| 65 64 20 65 61 72 6c 69 | 65 72 20 69 6e 20 74 68 |ed earli|er in th|
|00004e80| 69 73 20 63 68 61 70 74 | 65 72 29 2e 20 59 6f 75 |is chapt|er). You|
|00004e90| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6d 75 |r applic|ation mu|
|00004ea0| 73 74 20 70 72 6f 76 69 | 64 65 20 61 20 76 61 6c |st provi|de a val|
|00004eb0| 69 64 20 63 6f 6d 70 6f | 6e 65 6e 74 20 69 64 65 |id compo|nent ide|
|00004ec0| 6e 74 69 66 69 65 72 20 | 74 6f 20 74 68 69 73 20 |ntifier |to this |
|00004ed0| 66 75 6e 63 74 69 6f 6e | 20 28 79 6f 75 20 63 61 |function| (you ca|
|00004ee0| 6e 20 67 65 74 20 61 20 | 63 6f 6d 70 6f 6e 65 6e |n get a |componen|
|00004ef0| 74 20 69 64 65 6e 74 69 | 66 69 65 72 20 66 72 6f |t identi|fier fro|
|00004f00| 6d 20 74 68 65 20 46 69 | 6e 64 4e 65 78 74 43 6f |m the Fi|ndNextCo|
|00004f10| 6d 70 6f 6e 65 6e 74 20 | 66 75 6e 63 74 69 6f 6e |mponent |function|
|00004f20| 2c 20 64 69 73 63 75 73 | 73 65 64 20 65 61 72 6c |, discus|sed earl|
|00004f30| 69 65 72 20 69 6e 20 74 | 68 69 73 20 73 65 63 74 |ier in t|his sect|
|00004f40| 69 6f 6e 29 2e 20 54 68 | 65 20 4f 70 65 6e 43 6f |ion). Th|e OpenCo|
|00004f50| 6d 70 6f 6e 65 6e 74 20 | 66 75 6e 63 74 69 6f 6e |mponent |function|
|00004f60| 20 72 65 74 75 72 6e 73 | 20 61 20 63 6f 6d 70 6f | returns| a compo|
|00004f70| 6e 65 6e 74 20 69 6e 73 | 74 61 6e 63 65 20 74 68 |nent ins|tance th|
|00004f80| 61 74 20 69 64 65 6e 74 | 69 66 69 65 73 20 79 6f |at ident|ifies yo|
|00004f90| 75 72 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 74 6f |ur conne|ction to|
|00004fa0| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 2e 20 | the com|ponent. |
|00004fb0| 4c 69 73 74 69 6e 67 20 | 31 2d 31 20 73 68 6f 77 |Listing |1-1 show|
|00004fc0| 73 20 68 6f 77 20 74 6f | 20 75 73 65 20 74 68 65 |s how to| use the|
|00004fd0| 20 4f 70 65 6e 43 6f 6d | 70 6f 6e 65 6e 74 20 66 | OpenCom|ponent f|
|00004fe0| 75 6e 63 74 69 6f 6e 20 | 74 6f 20 67 61 69 6e 20 |unction |to gain |
|00004ff0| 61 63 63 65 73 73 20 74 | 6f 20 61 20 73 70 65 63 |access t|o a spec|
|00005000| 69 66 69 63 20 63 6f 6d | 70 6f 6e 65 6e 74 2e 0d |ific com|ponent..|
|00005010| 55 73 69 6e 67 20 61 20 | 43 6f 6d 70 6f 6e 65 6e |Using a |Componen|
|00005020| 74 0d 4f 6e 63 65 20 79 | 6f 75 20 68 61 76 65 20 |t.Once y|ou have |
|00005030| 65 73 74 61 62 6c 69 73 | 68 65 64 20 61 20 63 6f |establis|hed a co|
|00005040| 6e 6e 65 63 74 69 6f 6e | 20 74 6f 20 61 20 63 6f |nnection| to a co|
|00005050| 6d 70 6f 6e 65 6e 74 2c | 20 79 6f 75 20 63 61 6e |mponent,| you can|
|00005060| 20 75 73 65 20 69 74 73 | 20 73 65 72 76 69 63 65 | use its| service|
|00005070| 73 2e 20 59 6f 75 20 63 | 61 6c 6c 20 63 6f 6d 70 |s. You c|all comp|
|00005080| 6f 6e 65 6e 74 20 72 6f | 75 74 69 6e 65 73 20 6a |onent ro|utines j|
|00005090| 75 73 74 20 61 73 20 69 | 66 20 74 68 65 79 20 77 |ust as i|f they w|
|000050a0| 65 72 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 54 6f |ere Maci|ntosh To|
|000050b0| 6f 6c 62 6f 78 20 66 75 | 6e 63 74 69 6f 6e 73 2e |olbox fu|nctions.|
|000050c0| 20 45 61 63 68 20 74 69 | 6d 65 20 79 6f 75 20 63 | Each ti|me you c|
|000050d0| 61 6c 6c 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 2c |all a co|mponent,|
|000050e0| 20 79 6f 75 20 6d 75 73 | 74 20 73 70 65 63 69 66 | you mus|t specif|
|000050f0| 79 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |y the co|mponent |
|00005100| 69 6e 73 74 61 6e 63 65 | 20 74 68 61 74 20 69 64 |instance| that id|
|00005110| 65 6e 74 69 66 69 65 73 | 20 79 6f 75 72 20 63 6f |entifies| your co|
|00005120| 6e 6e 65 63 74 69 6f 6e | 2e 20 49 66 20 79 6f 75 |nnection|. If you|
|00005130| 20 73 70 65 63 69 66 79 | 20 61 6e 20 69 6e 76 61 | specify| an inva|
|00005140| 6c 69 64 20 63 6f 6e 6e | 65 63 74 69 6f 6e 2c 20 |lid conn|ection, |
|00005150| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|00005160| 6e 61 67 65 72 20 72 65 | 74 75 72 6e 73 20 61 20 |nager re|turns a |
|00005170| 72 65 73 75 6c 74 20 63 | 6f 64 65 20 6f 66 20 62 |result c|ode of b|
|00005180| 61 64 43 6f 6d 70 6f 6e | 65 6e 74 49 6e 73 74 61 |adCompon|entInsta|
|00005190| 6e 63 65 20 28 24 38 30 | 30 30 38 30 30 31 29 2e |nce ($80|008001).|
|000051a0| 20 0d 45 61 63 68 20 63 | 6f 6d 70 6f 6e 65 6e 74 | .Each c|omponent|
|000051b0| 20 74 79 70 65 20 73 75 | 70 70 6f 72 74 73 20 61 | type su|pports a|
|000051c0| 20 64 65 66 69 6e 65 64 | 20 73 65 74 20 6f 66 20 | defined| set of |
|000051d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 66 75 6e 63 |applicat|ion func|
|000051e0| 74 69 6f 6e 73 2e 20 54 | 68 65 20 64 65 76 65 6c |tions. T|he devel|
|000051f0| 6f 70 65 72 20 6f 66 20 | 74 68 65 20 63 6f 6d 70 |oper of |the comp|
|00005200| 6f 6e 65 6e 74 20 70 72 | 6f 76 69 64 65 73 20 69 |onent pr|ovides i|
|00005210| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 6f 20 79 6f |nformati|on to yo|
|00005220| 75 20 61 62 6f 75 74 20 | 74 68 65 73 65 20 66 75 |u about |these fu|
|00005230| 6e 63 74 69 6f 6e 73 2e | 20 59 6f 75 20 6d 75 73 |nctions.| You mus|
|00005240| 74 20 72 65 66 65 72 20 | 74 6f 20 74 68 65 20 61 |t refer |to the a|
|00005250| 70 70 72 6f 70 72 69 61 | 74 65 20 64 6f 63 75 6d |ppropria|te docum|
|00005260| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 61 20 64 |entation| for a d|
|00005270| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 74 68 |escripti|on of th|
|00005280| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 73 75 70 70 |e functi|ons supp|
|00005290| 6f 72 74 65 64 20 62 79 | 20 61 20 63 6f 6d 70 6f |orted by| a compo|
|000052a0| 6e 65 6e 74 2e 20 54 68 | 65 20 63 6f 6d 70 6f 6e |nent. Th|e compon|
|000052b0| 65 6e 74 73 20 74 68 61 | 74 20 41 70 70 6c 65 20 |ents tha|t Apple |
|000052c0| 70 72 6f 76 69 64 65 73 | 20 77 69 74 68 20 51 75 |provides| with Qu|
|000052d0| 69 63 6b 54 69 6d 65 20 | 61 72 65 20 64 65 73 63 |ickTime |are desc|
|000052e0| 72 69 62 65 64 20 6c 61 | 74 65 72 20 69 6e 20 74 |ribed la|ter in t|
|000052f0| 68 69 73 20 62 6f 6f 6b | 2c 20 69 6e 20 74 68 65 |his book|, in the|
|00005300| 20 63 68 61 70 74 65 72 | 20 d2 51 75 69 63 6b 54 | chapter| .QuickT|
|00005310| 69 6d 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e d3 |ime Comp|onents..|
|00005320| 20 41 73 20 61 6e 20 65 | 78 61 6d 70 6c 65 2c 20 | As an e|xample, |
|00005330| 64 72 61 77 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |drawer c|omponent|
|00005340| 73 20 73 75 70 70 6f 72 | 74 20 74 68 65 20 66 6f |s suppor|t the fo|
|00005350| 6c 6c 6f 77 69 6e 67 20 | 66 75 6e 63 74 69 6f 6e |llowing |function|
|00005360| 73 3a 0d 46 55 4e 43 54 | 49 4f 4e 20 44 72 61 77 |s:.FUNCT|ION Draw|
|00005370| 65 72 53 65 74 75 70 20 | 28 6d 79 49 6e 73 74 61 |erSetup |(myInsta|
|00005380| 6e 63 65 3a 20 43 6f 6d | 70 6f 6e 65 6e 74 49 6e |nce: Com|ponentIn|
|00005390| 73 74 61 6e 63 65 3b 20 | 0d 09 09 09 09 09 56 41 |stance; |......VA|
|000053a0| 52 20 72 3a 20 52 65 63 | 74 29 3a 20 43 6f 6d 70 |R r: Rec|t): Comp|
|000053b0| 6f 6e 65 6e 74 52 65 73 | 75 6c 74 3b 0d 46 55 4e |onentRes|ult;.FUN|
|000053c0| 43 54 49 4f 4e 20 44 72 | 61 77 65 72 43 6c 69 63 |CTION Dr|awerClic|
|000053d0| 6b 20 28 6d 79 49 6e 73 | 74 61 6e 63 65 3a 20 43 |k (myIns|tance: C|
|000053e0| 6f 6d 70 6f 6e 65 6e 74 | 49 6e 73 74 61 6e 63 65 |omponent|Instance|
|000053f0| 3b 20 0d 09 09 09 09 09 | 70 3a 20 50 6f 69 6e 74 |; ......|p: Point|
|00005400| 29 3a 20 43 6f 6d 70 6f | 6e 65 6e 74 52 65 73 75 |): Compo|nentResu|
|00005410| 6c 74 3b 0d 46 55 4e 43 | 54 49 4f 4e 20 44 72 61 |lt;.FUNC|TION Dra|
|00005420| 77 65 72 4d 6f 76 65 20 | 28 6d 79 49 6e 73 74 61 |werMove |(myInsta|
|00005430| 6e 63 65 3a 20 43 6f 6d | 70 6f 6e 65 6e 74 49 6e |nce: Com|ponentIn|
|00005440| 73 74 61 6e 63 65 3b 20 | 78 3a 20 49 6e 74 65 67 |stance; |x: Integ|
|00005450| 65 72 3b 0d 09 09 09 09 | 09 79 3a 20 49 6e 74 65 |er;.....|.y: Inte|
|00005460| 67 65 72 29 3a 20 43 6f | 6d 70 6f 6e 65 6e 74 52 |ger): Co|mponentR|
|00005470| 65 73 75 6c 74 3b 0d 46 | 55 4e 43 54 49 4f 4e 20 |esult;.F|UNCTION |
|00005480| 44 72 61 77 65 72 44 72 | 61 77 20 0d 09 09 09 09 |DrawerDr|aw .....|
|00005490| 09 28 6d 79 49 6e 73 74 | 61 6e 63 65 3a 20 43 6f |.(myInst|ance: Co|
|000054a0| 6d 70 6f 6e 65 6e 74 49 | 6e 73 74 61 6e 63 65 29 |mponentI|nstance)|
|000054b0| 3a 20 43 6f 6d 70 6f 6e | 65 6e 74 52 65 73 75 6c |: Compon|entResul|
|000054c0| 74 3b 0d 46 55 4e 43 54 | 49 4f 4e 20 44 72 61 77 |t;.FUNCT|ION Draw|
|000054d0| 65 72 45 72 61 73 65 20 | 0d 09 09 09 09 09 28 6d |erErase |......(m|
|000054e0| 79 49 6e 73 74 61 6e 63 | 65 3a 20 43 6f 6d 70 6f |yInstanc|e: Compo|
|000054f0| 6e 65 6e 74 49 6e 73 74 | 61 6e 63 65 29 3a 20 43 |nentInst|ance): C|
|00005500| 6f 6d 70 6f 6e 65 6e 74 | 52 65 73 75 6c 74 3b 0d |omponent|Result;.|
|00005510| 41 66 74 65 72 20 65 73 | 74 61 62 6c 69 73 68 69 |After es|tablishi|
|00005520| 6e 67 20 61 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |ng a con|nection |
|00005530| 74 6f 20 61 20 64 72 61 | 77 65 72 20 63 6f 6d 70 |to a dra|wer comp|
|00005540| 6f 6e 65 6e 74 2c 20 79 | 6f 75 72 20 61 70 70 6c |onent, y|our appl|
|00005550| 69 63 61 74 69 6f 6e 20 | 63 61 6e 20 63 61 6c 6c |ication |can call|
|00005560| 20 74 68 65 20 44 72 61 | 77 65 72 53 65 74 75 70 | the Dra|werSetup|
|00005570| 20 66 75 6e 63 74 69 6f | 6e 20 69 6e 20 74 68 65 | functio|n in the|
|00005580| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 61 6e 6e 65 | followi|ng manne|
|00005590| 72 3a 0d 53 65 74 52 65 | 63 74 28 72 2c 20 34 30 |r:.SetRe|ct(r, 40|
|000055a0| 2c 20 34 30 2c 20 38 30 | 2c 20 38 30 29 3b 0d 72 |, 40, 80|, 80);.r|
|000055b0| 65 73 75 6c 74 20 3a 3d | 20 44 72 61 77 65 72 53 |esult :=| DrawerS|
|000055c0| 65 74 75 70 20 28 67 44 | 72 61 77 65 72 4c 69 73 |etup (gD|rawerLis|
|000055d0| 74 5b 69 5d 2c 20 72 29 | 3b 0d 43 6c 6f 73 69 6e |t[i], r)|;.Closin|
|000055e0| 67 20 61 20 43 6f 6e 6e | 65 63 74 69 6f 6e 20 74 |g a Conn|ection t|
|000055f0| 6f 20 61 20 43 6f 6d 70 | 6f 6e 65 6e 74 0d 57 68 |o a Comp|onent.Wh|
|00005600| 65 6e 20 79 6f 75 20 61 | 72 65 20 64 6f 6e 65 20 |en you a|re done |
|00005610| 75 73 69 6e 67 20 61 20 | 63 6f 6d 70 6f 6e 65 6e |using a |componen|
|00005620| 74 2c 20 79 6f 75 20 6d | 75 73 74 20 63 6c 6f 73 |t, you m|ust clos|
|00005630| 65 20 79 6f 75 72 20 63 | 6f 6e 6e 65 63 74 69 6f |e your c|onnectio|
|00005640| 6e 20 74 6f 20 74 68 61 | 74 20 63 6f 6d 70 6f 6e |n to tha|t compon|
|00005650| 65 6e 74 2e 20 55 73 65 | 20 74 68 65 20 43 6c 6f |ent. Use| the Clo|
|00005660| 73 65 43 6f 6d 70 6f 6e | 65 6e 74 20 66 75 6e 63 |seCompon|ent func|
|00005670| 74 69 6f 6e 20 74 6f 20 | 63 6c 6f 73 65 20 74 68 |tion to |close th|
|00005680| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 2e 20 54 68 |e connec|tion. Th|
|00005690| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 61 6d 70 |e follow|ing samp|
|000056a0| 6c 65 20 63 6f 64 65 20 | 63 6f 6e 74 61 69 6e 73 |le code |contains|
|000056b0| 20 61 20 6c 6f 6f 70 20 | 74 68 61 74 20 63 6c 6f | a loop |that clo|
|000056c0| 73 65 73 20 61 6c 6c 20 | 74 68 65 20 63 6f 6d 70 |ses all |the comp|
|000056d0| 6f 6e 65 6e 74 20 63 6f | 6e 6e 65 63 74 69 6f 6e |onent co|nnection|
|000056e0| 73 20 75 73 65 64 20 62 | 79 20 61 6e 20 61 70 70 |s used b|y an app|
|000056f0| 6c 69 63 61 74 69 6f 6e | 2e 20 0d 46 4f 52 20 69 |lication|. .FOR i|
|00005700| 20 3a 3d 20 31 20 74 6f | 20 67 44 72 61 77 65 72 | := 1 to| gDrawer|
|00005710| 43 6f 75 6e 74 20 44 4f | 0d 09 72 65 73 75 6c 74 |Count DO|..result|
|00005720| 20 3a 3d 20 43 6c 6f 73 | 65 43 6f 6d 70 6f 6e 65 | := Clos|eCompone|
|00005730| 6e 74 20 28 67 44 72 61 | 77 65 72 4c 69 73 74 5b |nt (gDra|werList[|
|00005740| 69 5d 29 3b 0d 43 72 65 | 61 74 69 6e 67 20 43 6f |i]);.Cre|ating Co|
|00005750| 6d 70 6f 6e 65 6e 74 73 | 0d 54 68 69 73 20 73 65 |mponents|.This se|
|00005760| 63 74 69 6f 6e 20 64 65 | 73 63 72 69 62 65 73 20 |ction de|scribes |
|00005770| 68 6f 77 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 |how to c|reate a |
|00005780| 63 6f 6d 70 6f 6e 65 6e | 74 20 61 6e 64 20 68 6f |componen|t and ho|
|00005790| 77 20 79 6f 75 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |w your c|omponent|
|000057a0| 20 69 6e 74 65 72 61 63 | 74 73 20 77 69 74 68 20 | interac|ts with |
|000057b0| 74 68 65 20 43 6f 6d 70 | 6f 6e 65 6e 74 20 4d 61 |the Comp|onent Ma|
|000057c0| 6e 61 67 65 72 2e 20 54 | 68 69 73 20 73 65 63 74 |nager. T|his sect|
|000057d0| 69 6f 6e 20 61 6c 73 6f | 20 64 65 73 63 72 69 62 |ion also| describ|
|000057e0| 65 73 20 74 68 65 20 66 | 61 63 69 6c 69 74 69 65 |es the f|acilitie|
|000057f0| 73 20 74 68 61 74 20 74 | 68 65 20 43 6f 6d 70 6f |s that t|he Compo|
|00005800| 6e 65 6e 74 20 4d 61 6e | 61 67 65 72 20 70 72 6f |nent Man|ager pro|
|00005810| 76 69 64 65 73 20 74 6f | 20 68 65 6c 70 20 79 6f |vides to| help yo|
|00005820| 75 20 6d 61 6e 61 67 65 | 20 79 6f 75 72 20 63 6f |u manage| your co|
|00005830| 6d 70 6f 6e 65 6e 74 2e | 20 49 66 20 79 6f 75 20 |mponent.| If you |
|00005840| 61 72 65 20 64 65 76 65 | 6c 6f 70 69 6e 67 20 61 |are deve|loping a|
|00005850| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2c 20 79 6f 75 20 | compone|nt, you |
|00005860| 73 68 6f 75 6c 64 20 72 | 65 61 64 20 74 68 65 20 |should r|ead the |
|00005870| 6d 61 74 65 72 69 61 6c | 20 69 6e 20 74 68 69 73 |material| in this|
|00005880| 20 73 65 63 74 69 6f 6e | 2e 20 0d 49 66 20 79 6f | section|. .If yo|
|00005890| 75 20 61 72 65 20 64 65 | 76 65 6c 6f 70 69 6e 67 |u are de|veloping|
|000058a0| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|000058b0| 74 68 61 74 20 75 73 65 | 73 20 63 6f 6d 70 6f 6e |that use|s compon|
|000058c0| 65 6e 74 73 2c 20 79 6f | 75 20 6d 61 79 20 66 69 |ents, yo|u may fi|
|000058d0| 6e 64 20 74 68 69 73 20 | 6d 61 74 65 72 69 61 6c |nd this |material|
|000058e0| 20 69 6e 74 65 72 65 73 | 74 69 6e 67 2c 20 62 75 | interes|ting, bu|
|000058f0| 74 20 79 6f 75 20 64 6f | 20 6e 6f 74 20 6e 65 65 |t you do| not nee|
|00005900| 64 20 74 6f 20 62 65 20 | 66 61 6d 69 6c 69 61 72 |d to be |familiar|
|00005910| 20 77 69 74 68 20 69 74 | 2e 20 59 6f 75 20 73 68 | with it|. You sh|
|00005920| 6f 75 6c 64 20 72 65 61 | 64 20 74 68 65 20 70 72 |ould rea|d the pr|
|00005930| 65 63 65 64 69 6e 67 20 | 73 65 63 74 69 6f 6e 2c |eceding |section,|
|00005940| 20 d2 55 73 69 6e 67 20 | 74 68 65 20 43 6f 6d 70 | .Using |the Comp|
|00005950| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 2c d3 20 |onent Ma|nager,. |
|00005960| 61 6e 64 20 74 68 65 6e | 20 75 73 65 20 74 68 65 |and then| use the|
|00005970| 20 72 65 66 65 72 65 6e | 63 65 20 73 65 63 74 69 | referen|ce secti|
|00005980| 6f 6e 20 61 73 20 6e 65 | 65 64 65 64 2e 0d 54 68 |on as ne|eded..Th|
|00005990| 69 73 20 73 65 63 74 69 | 6f 6e 20 68 61 73 20 62 |is secti|on has b|
|000059a0| 65 65 6e 20 64 69 76 69 | 64 65 64 20 69 6e 74 6f |een divi|ded into|
|000059b0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 | the fol|lowing t|
|000059c0| 6f 70 69 63 73 3a 0d 6e | 09 d2 54 68 65 20 53 74 |opics:.n|..The St|
|000059d0| 72 75 63 74 75 72 65 20 | 6f 66 20 61 20 43 6f 6d |ructure |of a Com|
|000059e0| 70 6f 6e 65 6e 74 d3 20 | 64 65 73 63 72 69 62 65 |ponent. |describe|
|000059f0| 73 20 68 6f 77 20 79 6f | 75 20 73 68 6f 75 6c 64 |s how yo|u should|
|00005a00| 20 73 74 72 75 63 74 75 | 72 65 20 79 6f 75 72 20 | structu|re your |
|00005a10| 63 6f 6d 70 6f 6e 65 6e | 74 20 70 72 6f 67 72 61 |componen|t progra|
|00005a20| 6d 2c 20 61 6e 64 20 69 | 6e 63 6c 75 64 65 73 20 |m, and i|ncludes |
|00005a30| 61 20 6c 69 73 74 69 6e | 67 20 6f 66 20 61 20 73 |a listin|g of a s|
|00005a40| 61 6d 70 6c 65 20 63 6f | 6d 70 6f 6e 65 6e 74 0d |ample co|mponent.|
|00005a50| 6e 09 d2 44 65 66 69 6e | 69 6e 67 20 59 6f 75 72 |n..Defin|ing Your|
|00005a60| 20 43 6f 6d 70 6f 6e 65 | 6e 74 d5 73 20 49 6e 74 | Compone|nt.s Int|
|00005a70| 65 72 66 61 63 65 73 d3 | 20 64 65 73 63 72 69 62 |erfaces.| describ|
|00005a80| 65 73 20 68 6f 77 20 79 | 6f 75 20 64 65 66 69 6e |es how y|ou defin|
|00005a90| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 |e the fu|nctions |
|00005aa0| 74 68 61 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |that app|lication|
|00005ab0| 73 20 6d 61 79 20 63 61 | 6c 6c 20 74 6f 20 72 65 |s may ca|ll to re|
|00005ac0| 71 75 65 73 74 20 73 65 | 72 76 69 63 65 20 66 72 |quest se|rvice fr|
|00005ad0| 6f 6d 20 79 6f 75 72 20 | 63 6f 6d 70 6f 6e 65 6e |om your |componen|
|00005ae0| 74 0d 6e 09 d2 4d 61 6e | 61 67 69 6e 67 20 59 6f |t.n..Man|aging Yo|
|00005af0| 75 72 20 43 6f 6d 70 6f | 6e 65 6e 74 d3 20 64 69 |ur Compo|nent. di|
|00005b00| 73 63 75 73 73 65 73 20 | 74 68 65 20 66 75 6e 63 |scusses |the func|
|00005b10| 74 69 6f 6e 73 20 74 68 | 61 74 20 61 72 65 20 70 |tions th|at are p|
|00005b20| 72 6f 76 69 64 65 64 20 | 62 79 20 74 68 65 20 43 |rovided |by the C|
|00005b30| 6f 6d 70 6f 6e 65 6e 74 | 20 4d 61 6e 61 67 65 72 |omponent| Manager|
|00005b40| 20 74 68 61 74 20 68 65 | 6c 70 20 79 6f 75 20 6d | that he|lp you m|
|00005b50| 61 6e 61 67 65 20 79 6f | 75 72 20 63 6f 6d 70 6f |anage yo|ur compo|
|00005b60| 6e 65 6e 74 20 61 6e 64 | 20 6d 61 6b 65 20 69 74 |nent and| make it|
|00005b70| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 6f 72 20 75 | availab|le for u|
|00005b80| 73 65 20 62 79 20 61 70 | 70 6c 69 63 61 74 69 6f |se by ap|plicatio|
|00005b90| 6e 73 0d 54 68 69 73 20 | 73 65 63 74 69 6f 6e 20 |ns.This |section |
|00005ba0| 70 72 65 73 65 6e 74 73 | 20 73 65 76 65 72 61 6c |presents| several|
|00005bb0| 20 65 78 61 6d 70 6c 65 | 73 20 64 65 6d 6f 6e 73 | example|s demons|
|00005bc0| 74 72 61 74 69 6e 67 20 | 68 6f 77 20 74 6f 20 63 |trating |how to c|
|00005bd0| 72 65 61 74 65 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |reate co|mponents|
|00005be0| 20 61 6e 64 20 72 65 67 | 69 73 74 65 72 20 74 68 | and reg|ister th|
|00005bf0| 65 6d 20 77 69 74 68 20 | 74 68 65 20 43 6f 6d 70 |em with |the Comp|
|00005c00| 6f 6e 65 6e 74 20 4d 61 | 6e 61 67 65 72 2e 20 41 |onent Ma|nager. A|
|00005c10| 6c 6c 20 6f 66 20 74 68 | 65 73 65 20 65 78 61 6d |ll of th|ese exam|
|00005c20| 70 6c 65 73 20 61 72 65 | 20 62 61 73 65 64 20 6f |ples are| based o|
|00005c30| 6e 20 61 20 d2 64 72 61 | 77 65 72 20 63 6f 6d 70 |n a .dra|wer comp|
|00005c40| 6f 6e 65 6e 74 d3 d1 61 | 20 73 69 6d 70 6c 65 20 |onent..a| simple |
|00005c50| 63 6f 6d 70 6f 6e 65 6e | 74 20 74 68 61 74 20 64 |componen|t that d|
|00005c60| 72 61 77 73 20 61 6e 20 | 6f 62 6a 65 63 74 20 6f |raws an |object o|
|00005c70| 66 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 73 |f a part|icular s|
|00005c80| 68 61 70 65 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |hape on |the scre|
|00005c90| 65 6e 2e 20 54 68 69 73 | 20 73 65 63 74 69 6f 6e |en. This| section|
|00005ca0| 20 69 6e 63 6c 75 64 65 | 73 20 74 68 65 20 73 6f | include|s the so|
|00005cb0| 75 72 63 65 20 63 6f 64 | 65 20 66 6f 72 20 61 20 |urce cod|e for a |
|00005cc0| 64 72 61 77 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |drawer c|omponent|
|00005cd0| 2e 0d 44 72 61 77 65 72 | 20 63 6f 6d 70 6f 6e 65 |..Drawer| compone|
|00005ce0| 6e 74 73 20 68 61 76 65 | 20 61 20 63 6f 6d 70 6f |nts have| a compo|
|00005cf0| 6e 65 6e 74 20 74 79 70 | 65 20 76 61 6c 75 65 20 |nent typ|e value |
|00005d00| 6f 66 20 27 64 72 61 77 | 27 2e 20 54 68 65 20 63 |of 'draw|'. The c|
|00005d10| 6f 6d 70 6f 6e 65 6e 74 | 20 73 75 62 74 79 70 65 |omponent| subtype|
|00005d20| 20 76 61 6c 75 65 20 69 | 6e 64 69 63 61 74 65 73 | value i|ndicates|
|00005d30| 20 74 68 65 20 74 79 70 | 65 20 6f 66 20 6f 62 6a | the typ|e of obj|
|00005d40| 65 63 74 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |ect the |componen|
|00005d50| 74 20 64 72 61 77 73 2e | 20 46 6f 72 20 65 78 61 |t draws.| For exa|
|00005d60| 6d 70 6c 65 2c 20 61 20 | 64 72 61 77 65 72 20 63 |mple, a |drawer c|
|00005d70| 6f 6d 70 6f 6e 65 6e 74 | 20 74 68 61 74 20 64 72 |omponent| that dr|
|00005d80| 61 77 73 20 61 6e 20 6f | 76 61 6c 20 68 61 73 20 |aws an o|val has |
|00005d90| 61 20 63 6f 6d 70 6f 6e | 65 6e 74 20 73 75 62 74 |a compon|ent subt|
|00005da0| 79 70 65 20 76 61 6c 75 | 65 20 6f 66 20 27 6f 76 |ype valu|e of 'ov|
|00005db0| 61 6c 27 2e 0d 44 72 61 | 77 65 72 20 63 6f 6d 70 |al'..Dra|wer comp|
|00005dc0| 6f 6e 65 6e 74 73 20 73 | 75 70 70 6f 72 74 20 61 |onents s|upport a|
|00005dd0| 20 73 6d 61 6c 6c 20 73 | 65 74 20 6f 66 20 72 65 | small s|et of re|
|00005de0| 71 75 65 73 74 73 3a 20 | 73 65 74 75 70 2c 20 64 |quests: |setup, d|
|00005df0| 72 61 77 2c 20 65 72 61 | 73 65 2c 20 6d 6f 76 65 |raw, era|se, move|
|00005e00| 2c 20 61 6e 64 20 63 6c | 69 63 6b 2e 20 54 68 65 |, and cl|ick. The|
|00005e10| 20 73 65 74 75 70 20 72 | 65 71 75 65 73 74 20 69 | setup r|equest i|
|00005e20| 6e 73 74 72 75 63 74 73 | 20 74 68 65 20 64 72 61 |nstructs| the dra|
|00005e30| 77 65 72 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 74 6f |wer comp|onent to|
|00005e40| 20 65 73 74 61 62 6c 69 | 73 68 20 61 20 72 65 67 | establi|sh a reg|
|00005e50| 69 6f 6e 20 66 6f 72 20 | 69 74 73 20 6f 62 6a 65 |ion for |its obje|
|00005e60| 63 74 2e 20 54 68 65 20 | 64 72 61 77 20 72 65 71 |ct. The |draw req|
|00005e70| 75 65 73 74 20 63 61 75 | 73 65 73 20 74 68 65 20 |uest cau|ses the |
|00005e80| 64 72 61 77 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 |drawer c|omponent|
|00005e90| 20 74 6f 20 64 72 61 77 | 20 69 74 73 20 6f 62 6a | to draw| its obj|
|00005ea0| 65 63 74 2e 20 54 68 65 | 20 65 72 61 73 65 20 72 |ect. The| erase r|
|00005eb0| 65 71 75 65 73 74 20 63 | 61 75 73 65 73 20 74 68 |equest c|auses th|
|00005ec0| 65 20 64 72 61 77 65 72 | 20 63 6f 6d 70 6f 6e 65 |e drawer| compone|
|00005ed0| 6e 74 20 74 6f 20 65 72 | 61 73 65 20 69 74 73 20 |nt to er|ase its |
|00005ee0| 6f 62 6a 65 63 74 2e 20 | 54 68 65 20 6d 6f 76 65 |object. |The move|
|00005ef0| 20 72 65 71 75 65 73 74 | 20 69 6e 73 74 72 75 63 | request| instruc|
|00005f00| 74 73 20 74 68 65 20 64 | 72 61 77 65 72 20 63 6f |ts the d|rawer co|
|00005f10| 6d 70 6f 6e 65 6e 74 20 | 74 6f 20 6d 6f 76 65 20 |mponent |to move |
|00005f20| 69 74 73 20 6f 62 6a 65 | 63 74 20 74 6f 20 74 68 |its obje|ct to th|
|00005f30| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 63 75 72 72 65 |e locati|on curre|
|00005f40| 6e 74 6c 79 20 6f 63 63 | 75 70 69 65 64 20 62 79 |ntly occ|upied by|
|00005f50| 20 74 68 65 20 6d 6f 75 | 73 65 20 70 6f 69 6e 74 | the mou|se point|
|00005f60| 65 72 2e 20 54 68 65 20 | 63 6c 69 63 6b 20 72 65 |er. The |click re|
|00005f70| 71 75 65 73 74 20 63 61 | 75 73 65 73 20 74 68 65 |quest ca|uses the|
|00005f80| 20 64 72 61 77 65 72 20 | 63 6f 6d 70 6f 6e 65 6e | drawer |componen|
|00005f90| 74 20 74 6f 20 72 65 74 | 75 72 6e 20 61 20 76 61 |t to ret|urn a va|
|00005fa0| 6c 75 65 20 69 6e 64 69 | 63 61 74 69 6e 67 20 77 |lue indi|cating w|
|00005fb0| 68 65 74 68 65 72 20 74 | 68 65 20 6d 6f 75 73 65 |hether t|he mouse|
|00005fc0| 20 70 6f 69 6e 74 65 72 | 20 69 73 20 6c 6f 63 61 | pointer| is loca|
|00005fd0| 74 65 64 20 69 6e 20 74 | 68 65 20 6f 62 6a 65 63 |ted in t|he objec|
|00005fe0| 74 20 6d 61 6e 61 67 65 | 64 20 62 79 20 74 68 65 |t manage|d by the|
|00005ff0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 20 49 6e 20 61 | compone|nt. In a|
|00006000| 64 64 69 74 69 6f 6e 2c | 20 64 72 61 77 65 72 20 |ddition,| drawer |
|00006010| 63 6f 6d 70 6f 6e 65 6e | 74 73 20 73 75 70 70 6f |componen|ts suppo|
|00006020| 72 74 20 74 68 65 20 72 | 65 71 75 69 72 65 64 20 |rt the r|equired |
|00006030| 43 6f 6d 70 6f 6e 65 6e | 74 20 4d 61 6e 61 67 65 |Componen|t Manage|
|00006040| 72 20 72 65 71 75 65 73 | 74 73 3a 20 6f 70 65 6e |r reques|ts: open|
|00006050| 2c 20 63 6c 6f 73 65 2c | 20 63 61 6e 20 64 6f 2c |, close,| can do,|
|00006060| 20 61 6e 64 20 76 65 72 | 73 69 6f 6e 2e 0d 54 68 | and ver|sion..Th|
|00006070| 65 20 53 74 72 75 63 74 | 75 72 65 20 6f 66 20 61 |e Struct|ure of a|
|00006080| 20 43 6f 6d 70 6f 6e 65 | 6e 74 0d 45 76 65 72 79 | Compone|nt.Every|
|00006090| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 68 61 73 20 61 | compone|nt has a|
|000060a0| 20 73 69 6e 67 6c 65 20 | 65 6e 74 72 79 20 70 6f | single |entry po|
|000060b0| 69 6e 74 20 74 68 61 74 | 20 72 65 74 75 72 6e 73 |int that| returns|
|000060c0| 20 61 20 6c 6f 6e 67 20 | 69 6e 74 65 67 65 72 2e | a long |integer.|
|000060d0| 20 57 68 65 6e 65 76 65 | 72 20 74 68 65 20 43 6f | Wheneve|r the Co|
|000060e0| 6d 70 6f 6e 65 6e 74 20 | 4d 61 6e 61 67 65 72 20 |mponent |Manager |
|000060f0| 72 65 63 65 69 76 65 73 | 20 61 20 72 65 71 75 65 |receives| a reque|
|00006100| 73 74 20 66 6f 72 20 79 | 6f 75 72 20 63 6f 6d 70 |st for y|our comp|
|00006110| 6f 6e 65 6e 74 2c 20 69 | 74 20 63 61 6c 6c 73 20 |onent, i|t calls |
|00006120| 74 68 61 74 20 65 6e 74 | 72 79 20 70 6f 69 6e 74 |that ent|ry point|
|00006130| 20 61 6e 64 20 70 61 73 | 73 65 73 20 74 68 65 20 | and pas|ses the |
|00006140| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 70 61 |applicat|ion.s pa|
|00006150| 72 61 6d 65 74 65 72 73 | 2c 20 61 6c 6f 6e 67 20 |rameters|, along |
|00006160| 77 69 74 68 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |with inf|ormation|
|00006170| 20 61 62 6f 75 74 20 74 | 68 65 20 63 75 72 72 65 | about t|he curre|
|00006180| 6e 74 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 2c 20 69 |nt conne|ction, i|
|00006190| 6e 20 61 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 70 61 |n a comp|onent pa|
|000061a0| 72 61 6d 65 74 65 72 73 | 20 72 65 63 6f 72 64 2e |rameters| record.|
|000061b0| 20 59 6f 75 72 20 63 6f | 6d 70 6f 6e 65 6e 74 20 | Your co|mponent |
|000061c0| 73 68 6f 75 6c 64 20 74 | 68 65 6e 20 65 78 61 6d |should t|hen exam|
|000061d0| 69 6e 65 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 |ine the |paramete|
|000061e0| 72 73 20 61 6e 64 20 73 | 74 61 74 65 20 69 6e 66 |rs and s|tate inf|
|000061f0| 6f 72 6d 61 74 69 6f 6e | 20 74 6f 20 64 65 74 65 |ormation| to dete|
|00006200| 72 6d 69 6e 65 20 74 68 | 65 20 6e 61 74 75 72 65 |rmine th|e nature|
|00006210| 20 6f 66 20 74 68 65 20 | 72 65 71 75 65 73 74 2c | of the |request,|
|00006220| 20 70 65 72 66 6f 72 6d | 20 74 68 65 20 61 70 70 | perform| the app|
|00006230| 72 6f 70 72 69 61 74 65 | 20 70 72 6f 63 65 73 73 |ropriate| process|
|00006240| 69 6e 67 2c 20 73 65 74 | 20 61 6e 20 65 72 72 6f |ing, set| an erro|
|00006250| 72 20 63 6f 64 65 2c 20 | 61 6e 64 20 72 65 74 75 |r code, |and retu|
|00006260| 72 6e 20 74 6f 20 74 68 | 65 20 43 6f 6d 70 6f 6e |rn to th|e Compon|
|00006270| 65 6e 74 20 4d 61 6e 61 | 67 65 72 2e 0d 54 79 70 |ent Mana|ger..Typ|
|00006280| 69 63 61 6c 6c 79 2c 20 | 79 6f 75 20 73 68 6f 75 |ically, |you shou|
|00006290| 6c 64 20 73 74 6f 72 65 | 20 79 6f 75 72 20 63 6f |ld store| your co|
|000062a0| 6d 70 6f 6e 65 6e 74 20 | 69 6e 20 61 20 63 6f 6d |mponent |in a com|
|000062b0| 70 6f 6e 65 6e 74 20 72 | 65 73 6f 75 72 63 65 2e |ponent r|esource.|
|000062c0| 20 53 65 65 20 d2 52 65 | 73 6f 75 72 63 65 73 2c | See .Re|sources,|
|000062d0| d3 20 6c 61 74 65 72 20 | 69 6e 20 74 68 69 73 20 |. later |in this |
|000062e0| 63 68 61 70 74 65 72 2c | 20 66 6f 72 20 61 20 64 |chapter,| for a d|
|000062f0| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 74 68 |escripti|on of th|
|00006300| 65 20 66 6f 72 6d 61 74 | 20 61 6e 64 20 63 6f 6e |e format| and con|
|00006310| 74 65 6e 74 20 6f 66 20 | 63 6f 6d 70 6f 6e 65 6e |tent of |componen|
|00006320| 74 20 72 65 73 6f 75 72 | 63 65 73 2e 0d 54 68 65 |t resour|ces..The|
|00006330| 20 63 6f 64 65 20 69 6e | 20 4c 69 73 74 69 6e 67 | code in| Listing|
|00006340| 20 31 2d 32 20 73 68 6f | 77 73 20 74 68 65 20 73 | 1-2 sho|ws the s|
|00006350| 74 72 75 63 74 75 72 65 | 20 6f 66 20 61 20 64 72 |tructure| of a dr|
|00006360| 61 77 65 72 20 63 6f 6d | 70 6f 6e 65 6e 74 d1 61 |awer com|ponent.a|
|00006370| 20 73 69 6d 70 6c 65 20 | 63 6f 6d 70 6f 6e 65 6e | simple |componen|
|00006380| 74 20 74 68 61 74 20 64 | 72 61 77 73 20 61 6e 20 |t that d|raws an |
|00006390| 6f 62 6a 65 63 74 20 6f | 6e 20 74 68 65 20 73 63 |object o|n the sc|
|000063a0| 72 65 65 6e 2e 20 44 72 | 61 77 65 72 20 63 6f 6d |reen. Dr|awer com|
|000063b0| 70 6f 6e 65 6e 74 73 20 | 73 75 70 70 6f 72 74 20 |ponents |support |
|000063c0| 61 20 73 6d 61 6c 6c 20 | 73 65 74 20 6f 66 20 72 |a small |set of r|
|000063d0| 65 71 75 65 73 74 73 3a | 20 73 65 74 75 70 2c 20 |equests:| setup, |
|000063e0| 64 72 61 77 2c 20 65 72 | 61 73 65 2c 20 6d 6f 76 |draw, er|ase, mov|
|000063f0| 65 2c 20 61 6e 64 20 63 | 6c 69 63 6b 2e 20 54 68 |e, and c|lick. Th|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.